Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

while implementing caching we have following properties for caching location.

Any, Client,Downstream, Server, None, or ServerAndClient. which we can specify in

[OutputCache(Duration=3600, VaryByParam="none", Location=OutputCacheLocation.Client, NoStore=true)]
C#
public string GetName()
{
    return "Hi " + User.Identity.Name;
}



if we dont specify any location, by default, the Location property of OutputCache is Any.

My question is when location is Any, how dot net decides where to store cached value means client or server,how it is decided and which location takes preference?
Posted
Updated 14-Sep-15 19:47pm
v3
Comments
aarif moh shaikh 8-Sep-15 6:55am    
not clarifying...
atulonweb@gmail.com 8-Sep-15 7:38am    
sorry aarif if it is not clear.. I have updated the question

1 solution

Look at the very first member "Any" in the following link:

https://msdn.microsoft.com/en-us/library/system.web.ui.outputcachelocation.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900