Get rid of [dynamic] JavaScript views in Visual Studio

Try this IE > Internet Options > Settings (under browsing history) > Check for new version of stored pages : Every time I visit the webpage.

This works for me in IE10.

enter image description here

Other option is to open Developer tools and select cache option Always Refresh from Server as show in the image below

enter image description here


Try hitting CTRL+F5 on the web page. That did the trick for me.

The problem was that I had opened other IE windows from a previous debugging session, so the dynamic javascript files were still cached.


Having developer tools open - F12 - should also cause the cache files for the page to be cleared on each refresh.


Changing the encoding of the JS file in question, from a Windows codepage to UTF-8, fixes this for me.

Narrowing it down, it appears that OEM Extended ASCII characters in the file (e.g. ALT-254 which I use for a bullet) trigger the problem with the Windows codepage files.

(Visual Studio 2013 Update 5, IE11)