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.
-
Take a look at this linkSarah Aziziyan– Sarah Aziziyan2015-12-09 14:14:08 +00:00Commented Dec 9, 2015 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– Goran Mottram2015-12-09 14:16:09 +00:00Commented Dec 9, 2015 at 14:16
Add a comment
|
1 Answer
Try this.Just append some random value
<script type='text/javascript' src='main.js?version=RANDOM VALUE'></script>
7 Comments
Bhargav
where i need to append that script tag
santosh singh
In the head section of your html page
Bhargav
for each and every page i need to add this script tag
santosh singh
If you want to refresh js file then yes.
Bhargav
thanks for your response Santosh
|