I just started using OutputCache for some of my actions with the controller, and I am not quite getting the answer I would expect.
I basically set Location = OutputCacheLocation.Any and the http header looks like this:
Server ASP.NET Development Server/9.0.0.0
Date Wed, 15 Jul 2009 02:14:21 GMT
X-AspNet-Version 2.0.50727
X-AspNetMvc-Version 1.0
Content-Encoding gzip
Cache-Control private, max-age=3600
Expires Wed, 15 Jul 2009 02:14:21 GMT
Last-Modified Wed, 15 Jul 2009 02:14:20 GMT
Vary *
Content-Type text/html; charset=utf-8
Content-Length 640
Connection Close
Now, if my interpretation is correct, the part of Cache-Control, which is set to private, means that it will be cached only on the client. I also need to cache any proxy server.
, , OutputCacheLocation.Any, Cache-Control - public, max-age = 3600 ". , , " "(.. - . http://msdn.microsoft.com/en-us/library/system.web.httpcacheability.aspx).
?