@baryodev/pwa-kit v0.3.0 #2
arnelirobles
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Fixes stale assets after a deploy — the common cause of a blank page or stuck spinner on already-installed PWAs.
generateServiceWorker({ version })folds a build id into the cache names, so each deploy purges the previous build's stale cached chunks.registerServiceWorkerreloads once when a new worker takes control (opt out with{ reloadOnUpdate: false }).Backward compatible:
versiondefaults tov1.Install
Posted automatically on publish.
All reactions