1importScripts('https://cdn.jsdelivr.net/npm/[email protected]/workbox/workbox-sw.js') 2 3// -------------------------------------------------- 4// Configure 5// -------------------------------------------------- 6 7// Set workbox config 8workbox.setConfig({ 9 "debug": false 10}) 11 12// Start controlling any existing clients as soon as it activates 13workbox.core.clientsClaim() 14 15// Skip over the SW waiting lifecycle stage 16workbox.core.skipWaiting() 17 18workbox.precaching.cleanupOutdatedCaches() 19 20// -------------------------------------------------- 21// Precaches 22// -------------------------------------------------- 23 24// Precache assets 25 26// -------------------------------------------------- 27// Runtime Caching 28// -------------------------------------------------- 29 30// Register route handlers for runtimeCaching 31workbox.routing.registerRoute(new RegExp('/_nuxt/'), new workbox.strategies.CacheFirst ({}), 'GET') 32workbox.routing.registerRoute(new RegExp('/'), new workbox.strategies.NetworkFirst ({}), 'GET')
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.