diff --git a/src/service-worker.js b/src/service-worker.js index 8b91634..16e1676 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -80,28 +80,28 @@ workbox.routing.registerRoute( }), ); -workbox.routing.registerRoute( - ({ - request - }) => request.mode === 'navigate', - new workbox.strategies.NetworkFirst({ - cacheName: 'pages', - plugins: [ - new workbox.cacheableResponse.CacheableResponsePlugin({ - statuses: [200], - }), - ], - }), -); +// workbox.routing.registerRoute( +// ({ +// request +// }) => request.mode === 'navigate', +// new workbox.strategies.NetworkFirst({ +// cacheName: 'pages', +// plugins: [ +// new workbox.cacheableResponse.CacheableResponsePlugin({ +// statuses: [200], +// }), +// ], +// }), +// ); -workbox.routing.registerRoute(() => true, - new workbox.strategies.StaleWhileRevalidate({ - cacheName: 'apis', - plugins: [ - new workbox.broadcastUpdate.BroadcastUpdatePlugin(), - new workbox.expiration.ExpirationPlugin({ - maxAgeSeconds: 60 * 60 * 24 * 30, - }), - ], - }) -); +// workbox.routing.registerRoute(() => true, +// new workbox.strategies.StaleWhileRevalidate({ +// cacheName: 'apis', +// plugins: [ +// new workbox.broadcastUpdate.BroadcastUpdatePlugin(), +// new workbox.expiration.ExpirationPlugin({ +// maxAgeSeconds: 60 * 60 * 24 * 30, +// }), +// ], +// }) +// );