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
Why we use content place holder in asp.net?
Can we use html in asp.net?
In asp.net, how can you validate drop down box?
How does asp net store session ids by default?
Elaborate differentiation between ViewState and SessionState?
State differences between MVC and WebAPI
How many types of state management are there in asp net?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
What is form method?
What should you do is you want to remove an existing component but would like to make some funtionalities?
Can more than one person use the same login?
What is viewstate parameter?
What is the function of new view engine in asp.net? : asp.net mvc
What are triggers of an updatepanel?
What is the difference between c# and .net?