Closed moHaHa closed 1 year ago
If you are removing the pwa just add pwa again adding selfDestroying: true
and the sw and the caches will be removed from all clients. Check pwa docs https://vite-pwa-org.netlify.app/guide/unregister-service-worker.html
@userquin
I just add the PWA again, with this config line selfDestroying: true
the problems solved: ✅
Thank you very much for the answer 🙏. I would like to sponsor you, but unfortunately, my country (Syria) is blocked from accessing many services, including e-pay.
selfDestroying: true
solve the issue ✔️
read more : https://vite-pwa-org.netlify.app/guide/unregister-service-worker.html
Describe the bug
my client open the website the I always update , but he got the old version , I can't force the visitors to get the new versoin without say "hi , please clear cache on you browser or press CRTL + f5 " , and it sometimes works and sometime not
my make this edit
// import { VitePWA } from 'vite-plugin-pwa'
in new website verion the download icon removed from the borwser but how do I clear the cache from the other visitors ?
Reproduction
https://almodonholding.mohaha.me
System Info
Used Package Manager
pnpm
Validations