Interviews8 answers
How will you reflect your javascript code changes to all the clients without having them to refresh the page?
8 Answers
I have used versioning. But problem has not solved.
Pramod VermaPosted Jan 6, 2016, 7:56 AM EST
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
Prasoon AbhinawPosted Sep 4, 2015, 8:51 PM EDT
ETags may be used for this scenario .
Divesh PalPosted Aug 31, 2015, 3:19 AM EDT
How do you get your changed javascript code from server without any call?
How versioning will help?
Saravanan dhinakaranPosted Aug 21, 2015, 3:21 AM EDT
handle with JS version..
Upendra Pratap ShahiPosted Jun 4, 2015, 11:34 PM EDT
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.
Vaibhav SalwePosted May 30, 2015, 3:03 AM EDT
Add versioning with js
Madhuri MishraPosted May 1, 2015, 7:43 AM EDT
Please refer this URL : http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files
Santhosh SubramaniamPosted Apr 16, 2015, 5:40 AM EDT





