Hot Tip
LANGUAGES: C#
TECHNOLOGIES: Browser Caching
Skip Monotonous Cache Clearing
You ve got to refresh your browser to see the changes you ve made when modifying ASPX pages. Or do you?
By Jeff Prosise
Tired of having to refresh the page to clear the browser cache each time you modify an ASPX file during development time? Try adding this C# code snippet to a server-side script block:
Response.Cache.SetNoStore ();
This statement returns a Cache-Control: private, no-store header in the HTTP response, which instructs a browser not to cache the page.
Jeff Prosise is author of several books, including Programming Microsoft .NET (Microsoft Press). He also is a co-founder of Wintellect (http://www.wintellect.com), a software consulting and education firm that specializes in .NET.