I am currently developing and running my site from Visual Studio 2010. The site is launched in Google Chrome upon compiling.
Somewhere along the way, things are being cached. I can make a change to a javascript function, but unless i clear the cache in chrome, the old version of the script is being run.
I am running Visual Studio 2010 with .net 3.5 and the latest version of Google Chrome.
Is it possible to automatically load the latest script every time? I really don’t want to add a ?parameter onto my script tag each time I save and compile. It’s getting old having to clear the cache each time.
Thanks!
Simple method that I use is to either CTRL–F5 each time chrome is opened, OR, you can kill the local web server prior to running the app:
See list of chrome shortcuts for additional reading: Keyboard Shortcuts. Observe that CTRL–F5 as well as SHIFT–F5 will reload the current page while ignoring the cached content.
I typically use the above method instead of disabling cache alltogether (from chrome settings) because this is a localized case where I WANT to do away with the cache. All other situations (like normal browsing) I would prefer to keep the cache.