diff --git a/src/service-worker.js b/src/service-worker.js index 16e1676..e3a88db 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -30,21 +30,21 @@ workbox.routing.registerRoute( }) ); -workbox.routing.registerRoute( - ({ - url - }) => [ - 'https://cdn.jsdelivr.net', - 'https://unpkg.com', - 'https://cdn.skypack.dev', - 'https://jspm.dev', - 'https://fonts.googleapis.com', - 'https://cdn.startinblox.com' - ].includes(url.origin) || /cdn/.test(url.origin), - new workbox.strategies.StaleWhileRevalidate({ - cacheName: 'cdn', - }) -); +// workbox.routing.registerRoute( +// ({ +// url +// }) => [ +// 'https://cdn.jsdelivr.net', +// 'https://unpkg.com', +// 'https://cdn.skypack.dev', +// 'https://jspm.dev', +// 'https://fonts.googleapis.com', +// 'https://cdn.startinblox.com' +// ].includes(url.origin) || /cdn/.test(url.origin), +// new workbox.strategies.StaleWhileRevalidate({ +// cacheName: 'cdn', +// }) +// ); workbox.routing.registerRoute( ({ @@ -64,21 +64,21 @@ workbox.routing.registerRoute( }), ); -workbox.routing.registerRoute( - ({ - request - }) => - request.destination === 'style' || - request.destination === 'script', - new workbox.strategies.StaleWhileRevalidate({ - cacheName: 'assets', - plugins: [ - new workbox.cacheableResponse.CacheableResponsePlugin({ - statuses: [200], - }), - ], - }), -); +// workbox.routing.registerRoute( +// ({ +// request +// }) => +// request.destination === 'style' || +// request.destination === 'script', +// new workbox.strategies.StaleWhileRevalidate({ +// cacheName: 'assets', +// plugins: [ +// new workbox.cacheableResponse.CacheableResponsePlugin({ +// statuses: [200], +// }), +// ], +// }), +// ); // workbox.routing.registerRoute( // ({