From 716c9cb0135f5082531e7bd7adcbf90d208b4bb5 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 30 Apr 2020 15:33:40 -0400 Subject: Added warning message --- static/sw.js | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) (limited to 'static') 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 -- cgit v1.2.3