decide how to respond to requests • Same origin policy (SOP) • Caching Pattern • Cache only • Network only • Try cache first, then network • Try network first, then cache • etc.
toolbox.router.default = toolbox.cacheFirst; <script src="node_modules/sw-toolbox/companion.js" data-service-worker="sw-with-toolbox.js"></script> Array can be generated
• Helps to get started • Generates Web App Manifest • Generates App Shell • Angular Universal • Service Worker for Caching • AppCache as Fallback for Safari & Co.