damphat / mela_messenger

0 stars 0 forks source link

Browser show the old version of webapp because of serviceworker #1

Open damphat opened 4 years ago

damphat commented 4 years ago

The new version of the web app did not show up in the browser!

Unexpectedly, pressing F5 again, the old version of the webapp came back! it appeared that service-worker kept load the cache of old version.

damphat commented 4 years ago

I have tried this, but the old version keeps come back, after F5 several times. Open chrome/Application/Service Workers => click Unregister

The question is where the old version of the app stored.

damphat commented 4 years ago

Disable cache did not solve the problem

Request URL: https://mela-messenger.web.app/ Request Method: GET Status Code: 200 (from ServiceWorker) cache-control: no-cache, no-store, must-revalidate

damphat commented 4 years ago

Service Worker

https://googlechrome.github.io/samples/service-worker/basic/

Different ways to refresh a web page

https://stackoverflow.com/a/9671413/813080