Thursday, April 18, 2013

Disable browser cache for an ASP.NET MVC application

Sometimes a problem doesn’t have to be hard to fix…

Last week I was looking to disable browser caching for a specific action method on an ASP.NET MVC controller. There are multiple ways to do this. I decided to take the ActionFilter attribute road: