Class CacheControlAttribute

Provides caching settings for the controller / action

Inheritance
System.Object
CacheControlAttribute
Namespace: EPiServer.Shell.Web.Mvc
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public sealed class CacheControlAttribute : ActionFilterAttribute

Constructors

CacheControlAttribute(HttpCacheability)

Initializes a new instance of the CacheControlAttribute class.

Declaration
public CacheControlAttribute(HttpCacheability cacheability)
Parameters
Type Name Description
System.Web.HttpCacheability cacheability

The cacheability value

Properties

Cacheability

Gets the cacheability value.

Declaration
public HttpCacheability Cacheability { get; }
Property Value
Type Description
System.Web.HttpCacheability

Methods

OnActionExecuted(ActionExecutedContext)

Called by the ASP.NET MVC framework after the action method executes.

Declaration
public override void OnActionExecuted(ActionExecutedContext filterContext)
Parameters
Type Name Description
System.Web.Mvc.ActionExecutedContext filterContext

The filter context.