-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsw.js
More file actions
1 lines (1 loc) · 980 Bytes
/
sw.js
File metadata and controls
1 lines (1 loc) · 980 Bytes
1
importScripts("https://cdn.jsdelivr.net/npm/workbox-sw@6.0.2/build/workbox-sw.min.js");const ignoreQueryStringPlugin={cachedResponseWillBeUsed:async({request,cachedResponse})=>cachedResponse||caches.match(request.url,{ignoreSearch:true})};workbox.routing.registerRoute(()=>true,new workbox.strategies.StaleWhileRevalidate({plugins:[new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]}),ignoreQueryStringPlugin]}));workbox.precaching.precacheAndRoute(['https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css','https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js','https://cdn.jsdelivr.net/npm/vue@2/dist/vue.min.js','https://cdn.jsdelivr.net/npm/vue-i18n@8.22.4/dist/vue-i18n.min.js','/MyRandom/numbers.html','/MyRandom/index.html','/MyRandom/names.html','/MyRandom/passwords.html','/MyRandom/person.html','/MyRandom/words.html','/MyRandom/list.html','/MyRandom/about.html',],{ignoreURLParametersMatching:[/.*/]});