Given a controller action that is decorated with the OutputCacheAttribute attribute, is it possible for the action to interact directly with the OutputCacheAttribute properties?
This would be useful if, for example, the action was dynamic:
- Define
CacheItemPriority and set this before returning the ActionResult. - Determine that caching should be disabled for this particular request, and therefore the
NoStore property NoStore set to true.
Well no? If the answer is no, then what will be my rollback to cache output in MVC with such dynamic action-based behavior?
source share