= new WorkboxSW(); // Go to the Network first for API requests const cacheFirstStrategy = workbox.strategies.cacheFirst(); const networkFirstStrategy = workbox.strategies.networkFirst({networkTimeoutSeconds: 10}); // Go to the network first for APIs, then to the cache workbox.router.registerRoute('http*://*/api/*', networkFirstStrategy, 'GET'); // Cache the ionicons.woff2?v... file (querystring prevents cache-hit) workbox.router.registerRoute('/assets/fonts/*', cacheFirstStrategy); // The precache array will be populated by workbox-cli. See package.json workbox.precache([]);