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
Is asp.net mvc still used? : Asp.Net MVC
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
What are user controls?
What is fulltrust?
What is state management in .net?
How can you implement the postback property of an asp.net control?
What is the use of placeholder control?
How do you create a master page?
What are the different types of proxy patterns?
What are Master Pages in ASP.NET? or What is a Master Page?
What is server side session?
How to use multiple scriptmanager controls in a web page?
What is the asp.net mvc folder conventions? : asp.net mvc
What are triggers of an updatepanel?