Javascript not updating while debugging

I am using VS 2008 to write Javascript code (mostly in JQuery). However, the js file was not updated when I finished editing and hit F5 to invoke the debugger. I need to close vs2008 and reopen it to see the latest changes in the js file.

Any idea on how to fix this?

+1


source to share


5 answers


Do CTRL-F5 in the browser to force refresh all the files the page uses.



+3


source


Clear your browser cache. It usually has a locally cached copy.



+1


source


js is heavily cached. Use a timestamp and add it to the url:

script.js? _s = 12345678

this will force the update

0


source


clear browser cache .. this is the common culprit

0


source


If you can use Firefox instead, install the Web Developer Toolbar plugin and you can turn off caching for certain sites, i.e. the site you are developing on.

0


source







All Articles