This commit is contained in:
thuhole
2020-06-19 10:36:31 +08:00
parent 24bfd5c686
commit 5aaccd881c
12 changed files with 42 additions and 42 deletions

View File

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