1

I have an external JS file that I include in my ASPX page. Whenever I make changes to the JS, I need to close the browser and reopen it to see the changes. I have tried Ctrl F5 to refresh the cached JS copy but that doesn't work in IE.

Is there some way to not restart the browser to see the updated changes?

annakata
  • 74,572
  • 17
  • 113
  • 180
DotnetDude
  • 11,617
  • 35
  • 100
  • 158

7 Answers7

3

As others suggest, I would switch to Firefox for developing and keep IE only for testing.

If you want to keep developing on IE try the Internet Explorer Developer Toolbar. It offers some of the functionality of Firebug and you will have quick access to options for disabling the cache or clearing the cache for a specific domain, solving your caching problems.

Cache menu

Community
  • 1
  • 1
Serxipc
  • 6,639
  • 9
  • 40
  • 51
1

I sometimes keep the JavaScript or CSS files open in other tabs and force reload those tabs to get IE to understand "please reload everything, no really, everything."

James Socol
  • 1,795
  • 10
  • 11
0

Trying holding down the shift key when you click the refresh button.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
0

In my experience IE caches things extremely aggresively. You might have to hit Ctrl + F5 several times until your changes show up.

John Topley
  • 113,588
  • 46
  • 195
  • 237
0

Ctrl-F5 or Shift + Click on Refresh may work. If not, you can forcefully clear the cache from Tools/Internet Options/General/Temporary Files/Delete.

cdonner
  • 37,019
  • 22
  • 105
  • 153
0

I would strongly recommend developing in another browser... the aggressive caching can be painful with IE. After developing you can come back and test in IE.

Also, Firebug (or something like it) is something I can't do without as web developer. Another good Firefox addon is the Web Developer Toolbar (which has an easy menu option to clear FF's cache).

If you would rather just stick with IE, I think James Socol's keeping things in other tabs would be the most sure method to avoid caching.

Akrikos
  • 3,595
  • 2
  • 24
  • 22
0

Do you have your IE set to check for newer versions of stored pages every time?

Tools-->Internet Options-->Settings [btn] -->Every visit to the page [radio]

epascarello
  • 204,599
  • 20
  • 195
  • 236