Showing posts with label StateServer. Show all posts
Showing posts with label StateServer. Show all posts

Thursday, 18 October 2012

How can cache different version of same page using ASP.NET cache object ?

Output cache functionality is achieved by using “OutputCache” attribute on ASP.NET page header. Below is the syntax

<%@ OutputCache Duration="20" Location="Server" VaryByParam="state" VaryByCustom="minorversion" VaryByHeader="Accept-Language"%>




  • VaryByParam :- Caches different version depending on