diff --git a/src/options.ts b/src/options.ts index b91793db..77f50e9c 100644 --- a/src/options.ts +++ b/src/options.ts @@ -76,7 +76,7 @@ export async function resolveOptions(options: Partial, viteConfi globDirectory: outDirRoot, offlineGoogleAnalytics: false, cleanupOutdatedCaches: true, - dontCacheBustURLsMatching: /\.[a-f0-9]{8}\./, + dontCacheBustURLsMatching: /[.-][a-f0-9]{8}\./, mode, navigateFallback: 'index.html', } @@ -85,7 +85,7 @@ export async function resolveOptions(options: Partial, viteConfi swSrc, swDest, globDirectory: outDirRoot, - dontCacheBustURLsMatching: /\.[a-f0-9]{8}\./, + dontCacheBustURLsMatching: /[.-][a-f0-9]{8}\./, injectionPoint: 'self.__WB_MANIFEST', }