8
Reply

How will you reflect your javascript code changes to all the clients without having them to refresh the page?

Vineet Kumar

Vineet Kumar

9y
4.3k
1
Reply

    I have used versioning. But problem has not solved.

    It has to be called by adding different version from last one. You can use the same version that is of your build version. See the below example:myJavascript.js?3.0.1.2345

    ETags may be used for this scenario .

    How do you get your changed javascript code from server without any call?How versioning will help?

    handle with JS version..

    As per as my knowledge is concern you need to maintain version.If you know browser will cache css,js, image file if you want always latest copy from server then use following line./Yourjavascript.js?1.

    Add versioning with js

    Please refer this URL : http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files