underlords-web icon indicating copy to clipboard operation
underlords-web copied to clipboard

The browser cache doesn't refresh after an app update

Open Argn0 opened this issue 6 years ago • 2 comments

for netlify and main url

Argn0 avatar Jul 06 '19 00:07 Argn0

Might have to do with the PWA @albertcui

howardchung avatar Jul 09 '19 00:07 howardchung

So I kind of fixed this in https://github.com/odota/underlords-web/commit/683fe70150c03315e828e0ddc87107a3eb67d32c.

The service worker generated by CRA is default cache first, so the current behavior is the best we can do: page loads then user gets a prompt to update the page.

Once https://github.com/facebook/create-react-app/pull/5369 is merged we can change this to online first.

albertcui avatar Aug 02 '19 02:08 albertcui