Monday, August 18, 2008

Cache ASP.NET pages

To store the output cache for a specified duration

Declarative Approach:

<%@ OutputCache Duration="60" VaryByParam="None" %>


Programmatic Approach:

Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));
Response.Cache.SetCacheability(HttpCacheability.Public);


For more...http://support.microsoft.com/kb/323290

No comments: