The duration of OutputCache ASP.NET MVC 2 does not work properly
I attach a OutputCache to an action method with following profile where the duration is of 12 hours.
<add name="DefaultProfile" enabled ="true" noStore="false" duration="43200" varyByCustom="pq" varyByParam="none" location="Any"/>
The problem is server-side cache expires after just 2 or 3 minutes, not 12 hours as specified.
What setting I was missing开发者_开发知识库 out so that the cache mechanisms fail to conform to the specified duration.
精彩评论