I use OutputCache to cache the horizontal menu and vertical menu in my application. I usually use something like this in the actions I want to cache.
[OutputCache(Duration=3600, VaryByParam="none", Location=OutputCacheLocation.Client, NoStore=true)]
public ActionResult ActionName()
{
.......
}
But if these are child actions, I should use
[ChildActionOnly]
[OutputCache(Duration = 180, VaryByParam = "none")]
public ActionResult Menu()
{
......
}
When you use OutputCache with child actions, you cannot specify properties such as Location or NoStore. So the question is, if I cannot specify the location of the cache (client, server, any) for the child action, where is it stored by default? Thanks!!
(sorry for my English)
source
share