forked from newthuhole/hole_thu_frontend
200620135313
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/precache-manifest.984b7220eb5b804976f2e1f5f06aca4b.js"
|
||||
"//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/precache-manifest.c388c4fc889ead466f4e3878ad0effa2.js"
|
||||
);
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
@@ -33,7 +33,7 @@ workbox.core.clientsClaim();
|
||||
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
||||
|
||||
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/index.html"), {
|
||||
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), {
|
||||
|
||||
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user