I am currently testing a web site as the development goes on, and almost every time the client script is updated, I need to clear the browser cache for a new functionality to become available on the client due to the fact that the browser downloads the fresh compy of the .js file.
What if in production I roll out a new version of a script? How do I get the client browsers to get it as soon as it is uploaded to the server?
I am using an ASP.NET MVC 4 site.
Rename the file to create versioning:
so
becomes
Also per https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching
It’s not recommended to use querystrings for versioning (ie.
myscript.js?v=1.1.0) because specifically