I'm doing changes in JavaScript file every time. I need to clear the browser history to reflects the changes in JavaScript file is there any solution for this problem.
Asked
Active
Viewed 125 times
-1
-
Take a look at this [link](http://stackoverflow.com/questions/32414/how-can-i-force-clients-to-refresh-javascript-files) – Sarah Aziziyan Dec 09 '15 at 14:14
-
Pressing CTRL + F5 in most browsers forces it to perform a cache refresh of the current page, including resources that the page loads such as JS files. Handy during development. – Goran Mottram Dec 09 '15 at 14:16
1 Answers
1
Try this.Just append some random value
<script type='text/javascript' src='main.js?version=RANDOM VALUE'></script>

santosh singh
- 27,666
- 26
- 83
- 129
-
-
-
-
-
-
hi santosh.one small doute.if we move the code with above script tag to server.we will get any problem in code level – Bhargav Dec 10 '15 at 06:35
-