Internet Explorer caches the JavaScript file for purpose of fast
rendering but sometimes it's problematic for the developers. When you do a new
change in a JavaScript file, IE doesn't recognize that there has been a change straightaway
unless you do a page refresh and it loads the old file which could cause the
application to crash.
So the solution is we need to
force the browser to get the newer version of the JavaScript file but we also
may don't won't to do this every time the page loads.
You can append a version number
at the end of the JavaScript file link as follows so that, IE recognizes that
there has been a change and will reload the JavaScript file.
<script language="javascript" type="text/javascript" src="Media/JavaScript/quoteandbilling.js?v=1.2"></script>
No comments:
Write comments