3

When I make any changes to the vue js application and then go live, the old version remains live. The problem goes away when the browser's cache is cleared. How can I fix this cache clearing issue

Erby
  • 31
  • 2
  • What exactly is your case? Did you deploy the app to a webserver? Then Vue part is irrelevant, the way cache behaves totally depends on webserver config. – Estus Flask Feb 24 '22 at 09:41
  • use versioning in your js and css links.. like app.js?v=1.0.0 and if you release a new version app.js?v=1.1.0.... – Alaksandar Jesus Gene Feb 24 '22 at 10:13
  • There is no script named app.js on the index.html page. It creates the app.js file itself. So I can't version – Erby Feb 24 '22 at 10:21
  • How accurate would it be to prevent the browser from caching with this method? ` ` – Erby Feb 24 '22 at 10:24
  • Tried hard refresh of browser? – Pavan J Feb 24 '22 at 10:31
  • It happens when you do a refresh, but the main purpose is to fix this problem while going live. – Erby Feb 24 '22 at 10:33
  • Does this answer your question? [how to force clearing cache in chrome when release new Vue app version](https://stackoverflow.com/questions/59648117/how-to-force-clearing-cache-in-chrome-when-release-new-vue-app-version) – booluw Oct 19 '22 at 09:30

1 Answers1

1

In chrome dev-tools under the network tab you have the option to turn cache temporarily off.

Kimmo
  • 58
  • 6