Automatically update Vue site / PWA with new release

Viewed 2696

I have a Vue app that is used both in the browser and as a PWA. I would like to ensure users receive the latest version whenever updates have been pushed to the server.

I am using Nginx, Django and vue-cli along with @vue/cli-plugin-pwa.

Currently when I npm run build and then push the new version to the server, users get the old version of the app (in browser as well as PWA on their phones). To get the new version they do a hard refresh in the browser or for the PWA they close the app and reopen it again.

Is there a way to ensure a version check is done every time the app is loaded so that the new version is retrieved?

1 Answers
Related