1

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?

5 Answers 5

3

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

0

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

script.js?_s=12345678

this will force a refresh

2 Comments

I'd disagree with that approach, the problem is with debugging. In the shipped site, you'd want the browser to cache the JS. With that solution you'd have to make sure you take the timestamp off the end before deployment. Just a thought.
i agree - apply it where it makes sense like debugging
0

clear the browser cache.. thats the usual culprit

Comments

0

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.