From 1c44cffbe1ae7c9096c5696d6b6521f60b3fe32f Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 30 Nov 2020 16:02:54 +0100 Subject: [PATCH] fix: avoid adding revision to start_url --- src/workbox/options.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/workbox/options.ts b/src/workbox/options.ts index 496ba7f5..f53e0288 100644 --- a/src/workbox/options.ts +++ b/src/workbox/options.ts @@ -73,12 +73,6 @@ export function getOptions (nuxt, pwa: PWAContext): WorkboxOptions { // Add start_url to precaching if (pwa.manifest && pwa.manifest.start_url) { - const r = 'revision=' + options.cacheOptions.revision - if (pwa.manifest.start_url.includes('?')) { - pwa.manifest.start_url += '&' + r - } else { - pwa.manifest.start_url += '?' + r - } options.preCaching.unshift(...normalizePreCaching(pwa.manifest.start_url)) }