-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
needs reproductionThis issue is missing a minimal runnable reproduction, provided by the authorThis issue is missing a minimal runnable reproduction, provided by the authorscope: pwa
Description
Version 3.0.3
I'm using the default file in a cli-vue 3
new app. What I need is to reload a page when service worker detects and updates new files.
Using your default hook I tried to use this code:
console.log('New content is available; please refresh.')
window.location.reload() },
It works but it reloads forever!
Why?
I read a lot about Google Workbox and @vue/cli-plugin-pwa
and I know these default hooks are bundled in final .js and executed on the main thread. So I think maybe I'm wrong? I used create-react-app
default service-worker.js
and the reload used to work.
Where am I wrong?
kefranabg, zjlovezj and mohammad-zr
Metadata
Metadata
Assignees
Labels
needs reproductionThis issue is missing a minimal runnable reproduction, provided by the authorThis issue is missing a minimal runnable reproduction, provided by the authorscope: pwa