-1

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.

halfer
  • 18,701
  • 13
  • 79
  • 158
Bhargav
  • 3
  • 5
  • 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 Answers1

1

Try this.Just append some random value

<script type='text/javascript' src='main.js?version=RANDOM VALUE'></script>
santosh singh
  • 25,036
  • 23
  • 75
  • 121