I have code that is cached this way:
[OutputCache(Duration="3600", Location=OutputCacheLocation.Client)]
Now, I don't exactly know how this output cache works. Where exactly does it keep the copy of a page? And what are the differences between OutputCacheLocation.Client
and OutputCacheLocation.Browser
?
The location of where the cache is stored is determined by
Location
property of theOutputCacheAttribute
. In your case you setLocation=OutputCacheLocation.Client
so it will keep the cache on the client browser.OutputCacheLocation.Browser
doesn't exist. It's an invalid value. The documentation of theOutputCacheLocation
enumeration type contains the possible values along with a description of its usage: