moonpyk / mvcdonutcaching

ASP.NET MVC Extensible Donut Caching brings donut caching to ASP.NET MVC 3 and later. The code allows you to cache all of your page apart from one or more Html.Actions which can be executed every request. Perfect for user specific content.
https://github.com/moonpyk/mvcdonutcaching
MIT License
142 stars 50 forks source link

FileResult getting corrupted #53

Open thinkbigsoftware opened 9 years ago

thinkbigsoftware commented 9 years ago

I'm using this package for the first time with Umbraco 7.3.1. The DonutOutputCache attribute is on a controller which is registered as the default controller in the application.

I also have a RenderMvcController which uses route hijacking to override the default controller and serve a file as a FileResult (normally a pdf). The problem I'm having is that the caching is still intercepting the request and causing all file downloads to get corrupted (I've tried multiple file types)

Is there any way to get the donuntcaching to ignore this controller entirely?

Thanks very much