Tuesday 6 April 2010

ASP.NET Caching

If you want to cache images or anything, in your ASP.NET page, you can either use the following in the markup:

<%@ OutputCache Location="None" %>


or set the Cache property of the HttpResponse in your code-behind class:


Response.Cache.SetCacheability(HttpCacheability.No Cache);

No comments:

Post a Comment