Struct CacheControl
Decorates controller classes or actions that set NoCache headers in response. By default Force = true
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Web.dll
Syntax
public struct CacheControl
Fields
DEFAULT_CACHE_MAX_AGE_SEC
Declaration
public const int DEFAULT_CACHE_MAX_AGE_SEC = 86400
Field Value
Type |
Description |
System.Int32 |
|
Properties
Cacheability
Declaration
[Config]
public CacheControl.Type Cacheability { get; set; }
Property Value
HTTPCacheControl
Build standard cache control header from fields
Declaration
public string HTTPCacheControl { get; }
Property Value
Type |
Description |
System.String |
|
MaxAgeSec
Declaration
[Config]
public int? MaxAgeSec { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
MustRevalidate
Declaration
[Config]
public bool MustRevalidate { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
NoCache
Declaration
public static CacheControl NoCache { get; }
Property Value
NoStore
Declaration
[Config]
public bool NoStore { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[Config]
public bool NoTransform { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ProxyRevalidate
Declaration
[Config]
public bool ProxyRevalidate { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SharedMaxAgeSec
Declaration
[Config]
public int? SharedMaxAgeSec { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Methods
FromConfig(IConfigSectionNode)
Declaration
public static CacheControl FromConfig(IConfigSectionNode cfg)
Parameters
Returns
PrivateMaxAgeSec(Int32)
Declaration
public static CacheControl PrivateMaxAgeSec(int maxAgeSec = 86400)
Parameters
Type |
Name |
Description |
System.Int32 |
maxAgeSec |
|
Returns
PublicMaxAgeSec(Int32)
Declaration
public static CacheControl PublicMaxAgeSec(int maxAgeSec = 86400)
Parameters
Type |
Name |
Description |
System.Int32 |
maxAgeSec |
|
Returns
Extension Methods