This commit is contained in:
thuhole
2020-06-19 10:42:11 +08:00
parent d3e684adb1
commit c919ce9f7c
11 changed files with 42 additions and 43 deletions

View File

@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"//cdn.jsdelivr.net/gh/thuhole/thuhole.github.io/precache-manifest.bacfa72a1df23be3a7b75027dd726add.js"
"//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/precache-manifest.228208e1c75db49dab4e2c7284dd6474.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/thuhole.github.io/index.html"), {
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/index.html"), {
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});