Output caching for an ApiController (MVC4 Web API)
WebAPI does not have any built in support for the [OutputCache] attribute. Take a look at this article to see how you could implement this feature yourself.
WebAPI does not have any built in support for the [OutputCache] attribute. Take a look at this article to see how you could implement this feature yourself.
I’ve found the answer I was looking for: HttpResponse.RemoveOutputCacheItem(“/caching/CacheForever.aspx”);
Valid values for VaryByParam are one of the following: The literal string * (asterisk), which varies by all parameters of the action method. The literal string none (case-insensitive), which varies by no parameters of the action method. A string containing the semicolon-separated names of the parameters you wish to vary by. In your case, you’d … Read more