IIS7 output caching not works with asp mvc?

Up vote 0 down vote favorite share g+ share fb share tw.

I have got asp. Mvc application. I am using OutputCaching attributes on my actions.

My production server ignores output caching. I enabled it as site level and at server level but it not works. I tried to enable all necessary native modules... At dev and integration output caching works like a charm... What should I check now?

Some action code HttpGet, OutputCache(Duration = 1800, VaryByParam = "*", VaryByHeader = "Cookie",NoStore=true) public ActionResult Index(SearchCriteria sc, string filterId, DefaultValue(ProtocolEnum. Html) ProtocolEnum prot) I tried to use caching profiles but still mvc action hits sql server on production and on other machines works ok... // PRODUCTION HEADERS Cache-Control public, max-age=1800 Content-Type text/html; charset=utf-8 Content-Encoding gzip Expires Mon, 9.2.129 2010 14:38:51 GMT Last-Modified Mon, 9.2.129 2010 14:08:51 GMT Vary * Server Microsoft-IIS/7.0 X-AspNetMvc-Version 2.0 X-AspNet-Version 4.0.30319 Date Mon, 9.2.129 2010 14:08:51 GMT Content-Length 12978 Host PRODUCTION User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1. 9.2.12) Gecko/Mon, 9.2.129 2010 14:38:51 GMT9 Firefox/9.2.12 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language pl,en-us;q=0.7,en;q=0.3 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-2,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Cookie __utma=5970283.2110070202.1291029759.1291031928.1291039658.3; __utmc=5970283; __utmz=5970283.1291029759.1.1.

Utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); modify=209.2.12 13:54:34; __utmb=5970283.2.10.1291039658 If-Modified-Since Mon, 9.2.129 2010 14:08:49 GMT Cache-Control max-age=0 // INTEGRATION HEADERS Cache-Control no-cache Pragma no-cache Content-Type text/html; charset=utf-8 Content-Encoding gzip Expires -1 Vary Accept-Encoding Server Microsoft-IIS/7.5 X-AspNetMvc-Version 2.0 X-AspNet-Version 4.0.30319 X-Powered-By ASP.NET Date Mon, 9.2.129 2010 14:09:58 GMT Content-Length 12864 Host INTEGRATION User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1. 9.2.12) Gecko/Mon, 9.2.129 2010 14:38:51 GMT9 Firefox/9.2.12 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language pl,en-us;q=0.7,en;q=0.3 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-2,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Cookie __RequestVerificationToken_L0luZm9ybWEuRmFjaG1hbg__=DNt3n41KHvG1qrSzcrvAG9DgyT3uk48jAa1idChybngXwiApcAdsuLDuyqqyV1xqZJ4aVwPhCeluLKvsrLZR3e3vFrZTIalFuL0Fktv/DDmiyyN/0CPECFWmeAzDaWnSOvkMmw==; ASP. NET_SessionId=4tv3aleuhrrrnraotgmebqn2; modify=209.2.12 13:56:56 Pragma no-cache Cache-Control no-cache asp.net-mvc-2 iis7 .

Net-4.0 httpmodule outputcache link|improve this question edited 9.2.12 at 14:14 asked 9.2.128 at 14:55marcinn142113 47% accept rate.

– Andras Vass Nov 28 '10 at 23:45 1) I updated headers from production (not caching) and integration (works fine) – marcinn Nov 29 '10 at 14:15 2) Application is .net 4.0 on prod and integraion – marcinn Nov 29 '10 at 14:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions