menu

Questions & Answers

Vue.js after deploying an app i need to hard refresh in order to see the changes i've made

I have a live app which is used by other clients. after i made changes on dev environment i'm deploying the app. Naturally the cliend doesn't do hard refresh but the client needs to do hard refresh in order to see the changes i've made. What can i do ?

Answers(2) :

When your app is deployed, it is actually built with some new assets and the code doesn't need any update because the cache is invalidated (if the deployment is done well).

Service workers may persist but this is a different thing.

This was and still is a duplicate, see here.

Well First Answer worked for me, Which is updating the app version in the package.json

For example by default the version number is set to "0.1.0"

package.json file:

{
  "name": "project-name",
  "version": "0.1.1",
  "private": true,
  ...
}