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 set the cache time to 5 minutes and the Expires header will be the same as the Last-Modified header, which is the request time.
This is the header I am currently getting:
Date Thu, 16 Jul 2009 06:35:07 GMT Server Microsoft-IIS/6.0 X-Powered-By ASP.NET X-AspNet-Version 2.0.50727 X-AspNetMvc-Version 1.0 Content-Encoding gzip Cache-Control public, max-age=300 Expires Thu, 16 Jul 2009 06:35:06 GMT Last-Modified Thu, 16 Jul 2009 06:35:03 GMT Vary * Content-Type text/html; charset=utf-8 Content-Length 575
This is the title I would expect:
Date Thu, 16 Jul 2009 06:35:07 GMT Server Microsoft-IIS/6.0 X-Powered-By ASP.NET X-AspNet-Version 2.0.50727 X-AspNetMvc-Version 1.0 Content-Encoding gzip Cache-Control public, max-age=300 Expires Thu, 16 Jul 2009 06:40:06 GMT Last-Modified Thu, 16 Jul 2009 06:35:03 GMT Vary * Content-Type text/html; charset=utf-8 Content-Length 575
Any ideas on why this would be done?
Cheers Anthony
source share