Once I set serviceWorker to true, then I find out offline mode is not appropriate to my documents. So I turns serviceWorker to false, but it doesn't work.
0.14.2
First, set serviceWorker to true and release.
Second , set serviceWorker to false and release again.
The browser clear the cache according to the document config.base, then unregister service worker according to the config.base too.
The document still request the service-worker.js from the CDN which I can't delete.
Of course, this request wasn't sent by your newest code. since you have a previous serviceWorker installed, you should unregister the previous serviceWorker manually.
unregister:
In fact, we can also support a feature of unregistering sw when sw was set to false but we detected a existing sw.
Hey, is this still not working (considering the issue is "Open")?
We've recently removed PWA from our site but all users are stuck in a limbo of old content which won't get changed with newer commits.
Is there a way for us to unregister SW for everyone? Would I need to add back PWA plugin and set it to false instead of having it removed completely?
Sincerely, Soitora
Hey, is this still not working (considering the issue is "Open")?
We've recently removed PWA from our site but all users are stuck in a limbo of old content which won't get changed with newer commits.
Is there a way for us to unregister SW for everyone? Would I need to add back PWA plugin and set it to false instead of having it removed completely?
Sincerely, Soitora
It's working and I should close this issue.
I think that you should add back PWA plugin and set it to false, otherwise old SW script is still working and website can't update.
Most helpful comment
In fact, we can also support a feature of unregistering sw when sw was set to false but we detected a existing sw.