Hosting: "Uncaught SyntaxError: Unexpected token <" #8751
-
My quasar webapp is in PWA mode and I deploy with firebase using cache-control to always re-validate and an age of 0. But still when I deploy a new version and visit a dynamic site of my web app, the first load gives me the error: How can I fix this? Any ideas? I found a lot of "solutions" on GitHub but none of them work. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You will need some mechanism that detects that the source has been updated, otherwise you'll be left doing manually thru your browser. |
Beta Was this translation helpful? Give feedback.
-
See this thread https://forum.quasar-framework.org/topic/2560/solved-pwa-force-refresh-when-new-version-released/55. |
Beta Was this translation helpful? Give feedback.
-
The solution is to add the following in the
|
Beta Was this translation helpful? Give feedback.
The solution is to add the following in the
register-service-worker.js
: