views:

678

answers:

2

I use the ASP.NET Development Web server (also known as the Visual Studio Development Web server) to do local web site debugging and testing.

I've pretty much found exact functionality with IIS with the dev web server. However - where can you manage the settings of the dev web server - specifically regarding never caching any content - ever?

This of course is useful in a development scenario where I dont want to have to clear my cache...

+1  A: 

It's not so much the server you need to worry about doing caching. It's your browser. With that in mind, the shift-key is your friend. Just hold down the shift key while clicking refresh for a page and your browser will clear any cached content for the page.

Joel Coehoorn
Thanks for the helpful tip - I guess what I was hoping for was the ability to add a Cache-Control header to all content served from the Dev web server. I would rather not fiddle with browser cache settings as I might hit different servers that I want to use different settings for.
Adam
A: 

Set your browser settings to download content every time. This is in various places depending on which browser you use. Even with this setting though, Ctrl-F5 forces a refresh.

John Sheehan