0

I use Ionic 5 webapp, and when I deploy a new version of my application, the user receive a notification to download the new version. After the downloading, the application doesn't work anymore, but if the user remove the cache of his phone, the application works again. This is very annoying, Is any one have the same problem and solved it?

  • are you saving anything in localstorage? – Najam Us Saqib Dec 04 '19 at 09:22
  • The assetGroups in my ngsw-config.json `"assetGroups": [ { "name": "app", "installMode": "prefetch", "resources": { "files": [ "/favicon.png", "/index.html", "/*.css", "/*.js"] } }, { "name": "assets", "installMode": "lazy", "updateMode": "prefetch", "resources": { "files": [ "/assets/**", "/svg/**", "/*.(eot|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" ] } } ]` – hnahoulder Dec 04 '19 at 09:37
  • 1
    Does this answer your question? [Angular app has to clear cache after new deployment](https://stackoverflow.com/questions/55402751/angular-app-has-to-clear-cache-after-new-deployment) – Joel Joseph Dec 04 '19 at 10:13
  • @JoelJoseph it doesn't work yet. I already add no-cache in the meta of my index.html but I still have the same problem – hnahoulder Dec 04 '19 at 16:25
  • I find my problem, I cached every thing in my dataGroups section. Thank's guys for your help – hnahoulder Dec 04 '19 at 22:33

0 Answers0