Skip to content

Clear cache on deployment of new version #15244

Answered by Stjefan
reathh asked this question in CLI - SSR mode
Discussion options

You must be logged in to vote

Automatically refreshing the PWA code in the browser or in its app variants is a bit tricky. Prior to automating this refresh (described below in this post), our app needed a manual refresh in the browser, sometimes up to 4 times, until a newly deployed version of the PWA became active in the browser or the app.

Our solution for the automated PWA refresh (after the user confirms the refresh) is this:

  1. In our backend code, we send a version string which specifies the latest build of our Quasar frontend, as a header field, in every response to the frontend code. If your backend is based on Node/JS, you can add this header in your Express routes file, through a call of res.setHeader("front-e…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@reathh
Comment options

Comment options

You must be logged in to vote
1 reply
@reathh
Comment options

Answer selected by reathh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants