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
Can we create a multiple user simultaneously ?
How do you change the session time-out value?
How can we make sure that Web API returns JSON data only?
Explain the use of view state?
How would you get asp.net running in apache web servers?
Can you set which type of comparison you want to perform by the comparevalidator control?
How to use multiple scriptmanager controls in a web page?
how to debug web services on consumer side?
How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.
How does windows service lifecycle differ from a .standard. Exe?
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
Explain how can we access static variable?
How is it possible for .NET to support many languages?
What is a postback url?
What is bson in web api?