How to force auto-update of PWA? #13176
Answered
by
metalsadman
jonmor51
asked this question in
CLI - PWA mode
-
|
I've developed a Quasar web application which is running as a PWA. When I upload a new version to the server, people are not automatically seeing the new code, they're having to explicitly force a page refresh. Is there some way of configuring things so that updated code is automatically recognised and loaded? |
Beta Was this translation helpful? Give feedback.
Answered by
metalsadman
Apr 17, 2022
Replies: 1 comment
-
|
do it in your register(process.env.SERVICE_WORKER_FILE, {
...
updated (/* registration */) {
location.reload()
}
...
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
metalsadman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do it in your
src-pwa/register-service-worker.jsupdatedhandler.