question: how does a vue single-page project prompt the user to refresh the page after the release?
A single-page application is not like an ordinary website, where resources are reloaded every time the page jumps. If the user opens the page before releasing the new version and stays in the page without refresh, then the user will not see the content of the new version.
what we did before is to build a version.js, to use the request interceptor in axios, intercept every request, request version.js, in the interceptor, and then compare the content in the version.js with the existing local one, and prompt the user if it is inconsistent.
is there a better way than the above?