How can you cache different version of same page using ASP.NET
How can you 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 input parameters send through HTTP POST/GET.
ã VaryByHeader:- Caches different version depending on the contents of the page header.
ã VaryByCustom:-Lets you customize the way the cache handles page variations by declaring the attribute and overriding the GetVaryByCustomString handler.
ã VaryByControl:-Caches different versions of a user control based on the value of properties of ASP objects in the control.
2007-10-23, 4458👍, 0💬
What is continuous and staged representation? CMMI contains 25 key process areas which organization ...
How To Use Subqueries with the IN Operator? - MySQL FAQs - SQL SELECT Statements with JOIN and Subqu...
What would you use to compare two String variables - the operator == or the method equals()? You can...
What are the different elements in Functions points? The different elements in function points are a...
How To Compile a JUnit Test Class? Compiling a JUnit test class is like compiling any other Java cla...