I thought this would be a simple thing but it's driving me nuts. I simply added the following...
[OutputCache(Duration = 300)]
before an action
public ViewResult Index(string parameter) {...}
But it's not caching it, I put a breakpoint in the debugger inside the action and it hits it every time I go to that page. It does work if I set the Location parameter to Client but I want it to be server based. Do I have to enable caching somewhere else for it to work?
parametercomes from the router, as inroutes.MapRoute(null, "{parameter}", new { controller = "mycontroller", action = "index" })