Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Unassigned: Child action OutputCache can not be disabled with web.config [1492]

$
0
0
MVC 5
.NET 4.5.1

Using OutputCache on child action I can not force MVC to bypass it using web.config:

```
<system.web>
<caching>
<outputCache enableOutputCache="false" enableFragmentCache="false" />
</caching>
</system.web>

<system.webServer>
<caching enabled="false" enableKernelCache="false" />
</system.webServer>

```

I've attached sample project.
Comments: Here is some stackoverflow threads on this issue. The main problem here, is that it is not obvious and not straightforward to turn caching off for debugging purposes. http://stackoverflow.com/questions/4728958/caching-childactions-using-cache-profiles-wont-work http://thenullreference.com/blog/fixing-the-asp-net-mvc-3-outputcacheattribute-for-partial-views-to-honor-some-web-config-settings/

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>