200620135313

This commit is contained in:
thuhole
2020-06-20 05:53:14 +00:00
parent 8b64848811
commit cbc2923451
6 changed files with 13 additions and 13 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/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: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});