200620123334

This commit is contained in:
thuhole
2020-06-20 04:33:36 +00:00
parent 613e298c98
commit 39bd1a793d
11 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.3f20a9627fbc33c88c6df73f4dfa2819.js"
"//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/precache-manifest.0d32ede79532e38432c7667eb34e6258.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/webhole@gh-pages/index.html"), {
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});