diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-26 17:30:09 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-26 17:30:09 -0400 |
| commit | a045f870e9dae04342113e1b2cf7f1c2e6bc79a9 (patch) | |
| tree | a073676bd264a89570e4a4042775a02eebd8876a /static/sw.js | |
| parent | 02a6f590a13228da1485cf91e42ebd5684b3a6dd (diff) | |
| download | personal-website-a045f870e9dae04342113e1b2cf7f1c2e6bc79a9.tar.gz personal-website-a045f870e9dae04342113e1b2cf7f1c2e6bc79a9.tar.bz2 personal-website-a045f870e9dae04342113e1b2cf7f1c2e6bc79a9.zip | |
Added shadows and upgraded packages
Diffstat (limited to 'static/sw.js')
| -rw-r--r-- | static/sw.js | 32 |
1 files changed, 0 insertions, 32 deletions
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') |
