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 the difference between Session and response.Redirect?
Give some salient points of difference between request processor and request dispatcher.
What is difference between session and cookie?
What are HTTP handlers in ASP.NET?
What is Web API Routing?
How to register exception filter globally?
Do you know using sql cache invalidation?
Explain difference between friend and protected friend?
What is the difference between CC and BCC?
What are the advantages and limitations of query string?
What is the concept of view state in asp.net?
Where the viewstate is stored after the page postback?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
Explain what are the advantages of asp.net mvc framework? : asp.net mvc