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
Explain significance of routing? : asp.net mvc
How do u optimize a query in asp.net?
What is the latest version of asp.net?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
What is work flow gen? how can it will work with .Net?
Can we handle the error and redirect to some pages using web.config?
Why mvc is faster than asp.net? : Asp.Net MVC
What is the web.config file in asp?
Explain parts of assembly?
What methods are fired during the page load? Init()
How you can manage the state of application at the server side in ASP.NET?
What is applicatio domain?
Where can I get the details on migration of existing projects using various technologies to asp.net?
How many types cache in asp net?
Explain the difference between debug.write and trace.write? When should each be used?