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
How does the cookies work in asp.net?
What is x xss protection?
Where is asp.net session stored?
Explain a program using razor view engine to create a simple application? : asp.net mvc
Differentiate between a hyperlink control and a linkbutton control.
Who creates jsessionid?
What is the page life cycle in asp.net?
Which method is used to perform all validation at the page level?
Disable browser cache for entire ASP.NET website?
What is jade template engine?
Explain managed code an un-managed code.
What is the difference between mechine.config and web.config?
Explain code snippet to register exception filters from controller?
What is a user developed application?
Describe the difference between inline and code behind - which is best in?