cache-busting-example icon indicating copy to clipboard operation
cache-busting-example copied to clipboard

It works only when app is redering.

Open yukkon opened this issue 4 years ago • 1 comments

We add a debugger word into the oun App.js and you component only work when we login/logout and press F5. The rest of the time, when we go through the pages, the application does not know anything about the fact that it was updated.

yukkon avatar Dec 04 '21 17:12 yukkon

@yukkon In the development environment the content is fetched from the deployed location so even normal refresh or f5 would work but in cases of production or UAT it isn't and at times the content is fetched from browser cache and even normal refresh wouldn't work. In such cases comparing the version number in meta file from fetch would help I guess. To detect a new deployment there should be some service running in the background like a service worker which keeps checking the server for any new release. Even in such cases, the app shouldn't refresh on it's own as there might be a data loss during the process. It is only best when the app displays a notification asking the user to save the current data and then refresh the app to load new changes. Anyway, please do let me know if you find a solution in which the application refreshes automatically when a new deployment is detected.

Sri-Ln avatar Aug 01 '23 11:08 Sri-Ln