Bhanuprakash Bysani
Bhanuprakash Bysani

Reputation: 59

Cache Issue of JS files in Angular JS application

In development phase I am regularly updating js files, I am facing an issue with caching of JS files it's not updating code with ctrl+F5.

I am opening browser in incognito it's taking update file or when I am specifying version in reference file update code is taking in browser.

Please suggest me is there any approach with out specifying version number or opening in private window.

Upvotes: 0

Views: 1547

Answers (1)

Ruslan
Ruslan

Reputation: 91

You have different ways to do so:

  • Disable Cache
  • Add a "?version" to the script's src link

Upvotes: 0

Related Questions