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
Locationproperty of theOutputCacheAttribute. In your case you setLocation=OutputCacheLocation.Clientso it will keep the cache on the client browser.OutputCacheLocation.Browserdoesn’t exist. It’s an invalid value. The documentation of theOutputCacheLocationenumeration type contains the possible values along with a description of its usage: