From a045f870e9dae04342113e1b2cf7f1c2e6bc79a9 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 26 Jul 2020 17:30:09 -0400 Subject: Added shadows and upgraded packages --- static/sw.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 static/sw.js (limited to 'static') diff --git a/static/sw.js b/static/sw.js deleted file mode 100644 index 3f26afe..0000000 --- a/static/sw.js +++ /dev/null @@ -1,32 +0,0 @@ -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') -- cgit v1.2.3