JS file Cashing problem !!!



JS file cashing create lots trouble some time. And it's more irritating when you spend 1 hour to debug the problem and find out it's the cashed copy on client end.


So it's recommend that you use “cache-blockers” in your CSS and JavaScript code. 




   http://myapp.com/static/my_js_file.js?v=370 //here 370 is build number


Simple change in URI will force the browser to reload it and you can track the build number detail as well.

Comments

Popular posts from this blog

ERROR: Ignored call to 'alert()'. The document is sandboxed, and the 'allow-modals' keyword is not set.

CSS Specificity

Application Design Notes