I have an issue with :
VitePWA({
registerType: 'prompt',
})
when I wanna release new version to production, a user comes to my web-app after a long time, he can't load the app and the app is empty, because browser can't serve js files of previous releases and gets 404 (new assets overwrite the previous ones), and on the other hand the new service worker is downloaded and gets stuck and waiting for user accept.
I wanna know how to handle new release with prompt registerType?
Hi there.
I have an issue with : VitePWA({ registerType: 'prompt', })
when I wanna release new version to production, a user comes to my web-app after a long time, he can't load the app and the app is empty, because browser can't serve js files of previous releases and gets 404 (new assets overwrite the previous ones), and on the other hand the new service worker is downloaded and gets stuck and waiting for user accept.
I wanna know how to handle new release with prompt registerType?