views:

221

answers:

7

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?

A: 

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

Joel Coehoorn
Ctrl + F5 is the shortcut for forcing a refresh using IE.
John Topley
Maybe, but shift-refresh seems to work for me pretty consistently, while ctrl+F5 doesn't.
Joel Coehoorn
http://stackoverflow.com/questions/385367/whats-the-difference-between-hit-f5-and-ctrl-f5-in-browser/385491#385491
some
Nice answer, have a badge (just gave you the 10th upvote)
Joel Coehoorn
Now if you could include shift+Refresh in that table (it was missing)...
Joel Coehoorn
@Joed Coehoorn: Thank you for the 10th upvote! I just updated the table. Enjoy!
some
A: 

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

John Topley
+1  A: 

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
A: 

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
A: 

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
A: 

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
yes, i do have those settings
DotnetDude
+3  A: 
Serhii
Yes, that toolbar is essential if you want to develop in MSIE.
some