Forcing JavaScript reload in Internet Explorer

If you develop websites in Internet Explorer you may experience trouble reloading your  updated JavaScript. I ran into this problem myself when developing SharePoint Online  apps using IE11. The JavaScript was located on an external Azure website and did not reload when I published new versions, not even if I hit Ctrl+F5 to try to force a complete reload. I figured out that you could get around the problem if you do like this: Open the F12 developer tools and go to the debugger. Here locate your JavaScript and open it. In the script, press F9 to set a breakpoint anywhere in the code. Now when you refresh the page Internet Explorer will always reload the script. Problem solved, provided you can stand an annoying breakpoint each reload :-)

This entry was posted in Development and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *