diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/sw.js | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/static/sw.js b/static/sw.js index 3f26afe..ea69899 100644 --- a/static/sw.js +++ b/static/sw.js @@ -1,32 +1 @@ -importScripts('https://cdn.jsdelivr.net/npm/workbox-cdn@4.3.1/workbox/workbox-sw.js') - -// -------------------------------------------------- -// Configure -// -------------------------------------------------- - -// Set workbox config -workbox.setConfig({ - "debug": false -}) - -// Start controlling any existing clients as soon as it activates -workbox.core.clientsClaim() - -// Skip over the SW waiting lifecycle stage -workbox.core.skipWaiting() - -workbox.precaching.cleanupOutdatedCaches() - -// -------------------------------------------------- -// Precaches -// -------------------------------------------------- - -// Precache assets - -// -------------------------------------------------- -// Runtime Caching -// -------------------------------------------------- - -// Register route handlers for runtimeCaching -workbox.routing.registerRoute(new RegExp('/_nuxt/'), new workbox.strategies.CacheFirst ({}), 'GET') -workbox.routing.registerRoute(new RegExp('/'), new workbox.strategies.NetworkFirst ({}), 'GET') +// THIS FILE SHOULD NOT BE VERSION CONTROLLED |
