diff --git a/source/sw.js b/source/sw.js index 1fa5e31..a450a7e 100644 --- a/source/sw.js +++ b/source/sw.js @@ -9,7 +9,7 @@ const { CacheFirst, NetworkFirst, NetworkOnly, StaleWhileRevalidate } = strategi const { ExpirationPlugin } = expiration; const { CacheableResponsePlugin } = cacheableResponse; -const cacheSuffixVersion = '-231130a', +const cacheSuffixVersion = '-240101a', // precacheCacheName = core.cacheNames.precache, // runtimeCacheName = core.cacheNames.runtime, maxEntries = 100; @@ -37,7 +37,7 @@ core.clientsClaim(); precaching.cleanupOutdatedCaches(); routing.registerRoute( - /.*xgjalbum\.oss-cn-hangzhou\.aliyuncs\.com/, + /.*cfdn\.nofated\.win/, new CacheFirst({ cacheName: 'static-immutable' + cacheSuffixVersion, fetchOptions: {