Skip to content

Commit

Permalink
fix: avoid adding revision to start_url
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 30, 2020
1 parent ec31f0f commit 1c44cff
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/workbox/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 1c44cff

Please sign in to comment.