How can you reload vuejs after application update

2019-08-27 20:52发布

问题:

I have a scenario where there is a necessity that the users reload the vuejs app to get the latest vue app version when i update the whole application in the server including the backend APIs.

Suppose there is a chance that a user using the vue app version 1.1 already on production, will still be continuing to use the same even after the update at server (ie to 1.2). In such cases the backend APIs might have changed and it would break.

Any short and easy ways/methods to solve the above?

回答1:

This answer could have helpful information. It seems you want to invalidate the cached version of the site to ensure the user receives the up to date application?