This commit is contained in:
thuhole
2020-06-19 10:34:37 +08:00
parent a82d3b346c
commit 24bfd5c686
13 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(
"/gh/thuhole/thuhole.github.io/precache-manifest.7401cdf895b2828439ad6234dd8767de.js"
"./precache-manifest.52751ac2c82082371a7bc87c012d9bf7.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("/gh/thuhole/thuhole.github.io/index.html"), {
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), {
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});