Graviton
Graviton

Reputation: 83254

Javascript during debugging is not up to date

I am using VS 2008 to write my Javascript code ( mostly in JQuery). However the js file was not updated when I was done with the editing and pressed F5 to call out the debugger. I need to close my vs2008 and reopen it in order to see the latest changes in js file.

Any idea on how to fix this?

Upvotes: 1

Views: 467

Answers (5)

Jack
Jack

Reputation: 21163

Do a CTRL-F5 in the browser to force a hard refresh of all files the page is using.

Upvotes: 3

Dónal
Dónal

Reputation: 187529

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

Upvotes: 0

Lakshmi
Lakshmi

Reputation:

clear the browser cache.. thats the usual culprit

Upvotes: 0

IEnumerator
IEnumerator

Reputation: 2972

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

script.js?_s=12345678

this will force a refresh

Upvotes: 0

Kieron
Kieron

Reputation: 27107

Clear the cache in your browser. It's usually that it has a locally cached copy.

Upvotes: 1

Related Questions