Fixing the Asp.Net MVC 3 OutputCacheAttribute for Partial Views to Honor some web config settings
Greg Roberts
Greg RobertsWhile working today I thought I would try out caching a partial view action in my controller. Seems like an easy enough thing and was described as one of the nice new features of MVC 3 release. I quickly ran into issues in my assumption of how this feature would work, and went to the Usual Suspects for trying to figure out what happened.
Now lets get one thing out… The feature works, but it has a couple hidden gotchas that took a while to figure out.