Answer Posted / p.ramakrishna
<%@ OutputCache Duration="60" VaryByParam="None" %>
VaryByParam value
Description
none :One version of page cached (only raw GET)
*: n versions of page cached based on query string and/or
POST body
v1: n versions of page cached based on value of v1 variable
in query string or POST body
v1;v2: n versions of page cached based on value of v1 and
v2 variables in query string or POST body
<%@ OutputCache Duration="60" VaryByParam="none" %>
<%@ OutputCache Duration="60" VaryByParam="*" %>
<%@ OutputCache Duration="60" VaryByParam="name;age" %>
The OutputCache directive supports several other cache
varying options
* VaryByHeader - maintain separate cache entry for
header string changes (UserAgent, UserLanguage, etc.)
* VaryByControl - for user controls, maintain separate
cache entry for properties of a user control
* VaryByCustom - can specify separate cache entries for
browser types and version or provide a custom
GetVaryByCustomString method in HttpApplicationderived class
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is cross page posting? How is it done?
Define static function?
What is slidemaster?
What is the use of data set in asp.net?
Explain how can you debug your .net application?
What is full trust in asp.net?
How many ways are there to maintain a state in .net? What is view state?
What is data caching?
What is the purpose of using MVC programming pattern in ASP.NET?
How would ASP and ASP.NET applications run at the same time on the same server?
Is asp net front end or backend?
What is preprocessor in .net?
Is asp.net a language?
How can you debug your.net application?
How can we register exception filter from the action?