You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version in the current plugin also has very little use as it is the hasReference of the service-worker.js file and not of each document. Thus I could change index.html and version would stay the same.
Should we change the manifest to be the precache manifest?
🔦 Context
Building a PWA and using workbox-precaching + @parcel/service-worker
import{manifest,version}from"@parcel/service-worker";import{precacheAndRoute}from"workbox-precaching";// OLD does not update if index.html got updatedprecacheAndRoute(manifest.map((url)=>({ url,revision: version})));// NEW ProposedprecacheAndRoute(manifest)// ORimport{precache_manifest}from"@parcel/service-worker";precacheAndRoute(precache_manifest)