CacheControlHeaderValue Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the Cache-Control
HTTP header.
public ref class CacheControlHeaderValue
public class CacheControlHeaderValue
type CacheControlHeaderValue = class
Public Class CacheControlHeaderValue
- Inheritance
-
CacheControlHeaderValue
Constructors
CacheControlHeaderValue() |
Initializes a new instance of CacheControlHeaderValue. |
Fields
MaxAgeString |
A constant for the |
MaxStaleString |
A constant for the |
MinFreshString |
A constant for the |
MustRevalidateString |
A constant for the |
NoCacheString |
A constant for the |
NoStoreString |
A constant for the |
NoTransformString |
A constant for the |
OnlyIfCachedString |
A constant for the |
PrivateString |
A constant for the |
ProxyRevalidateString |
A constant for the |
PublicString |
A constant for the |
SharedMaxAgeString |
A constant for the |
Properties
Extensions |
Gets cache-extension tokens, each with an optional assigned value. |
MaxAge |
Gets or sets a value for the max-age specifies the maximum amount of time the response is considered fresh. |
MaxStale |
Gets or sets a value that determines if the
|
MaxStaleLimit |
Gets or sets a value for the Indicates the maximum duration an HTTP client is willing to accept a response that has exceeded its expiration time. |
MinFresh |
Gets or sets a value for the Indicates the freshness lifetime that an HTTP client is willing to accept a response. |
MustRevalidate |
Gets or sets a value that determines if the Indicates that caches must revalidate the use of stale caches with the origin server before their use. |
NoCache |
Gets or sets a value for the Configuring no-cache indicates that the client must re-validate cached responses with the original server before using it. |
NoCacheHeaders |
Gets a collection of field names in the "no-cache" directive in a cache-control header field on an HTTP response. |
NoStore |
Gets or sets a value for the Configuring no-store indicates that the response may not be stored in any cache. |
NoTransform |
Gets or sets a value for the Forbids intermediate caches or proxies from editing the response payload. |
OnlyIfCached |
Gets or sets a value for the Indicates that the client only wishes to obtain a stored response |
Private |
Gets or sets a value that determines if the Indicates that the response may not be stored by a shared cache. |
PrivateHeaders |
Gets a collection of field names in the "private" directive in a cache-control header field on an HTTP response. |
ProxyRevalidate |
Gets or sets a value that determines if the Indicates that shared caches must revalidate the use of stale caches with the origin server before their use. |
Public |
Gets or sets a value that determines if the Indicates that the response may be stored by any cache. |
SharedMaxAge |
Gets or sets a value for the Overrides max-age, but only for shared caches (such as proxies). |
Methods
Equals(Object) | Determines whether the specified object is equal to the current object. |
GetHashCode() | Serves as the default hash function. |
Parse(String) | |
Parse(StringSegment) |
Parses |
ToString() | Returns a string that represents the current object. |
TryParse(String, CacheControlHeaderValue) | |
TryParse(StringSegment, CacheControlHeaderValue) |
Attempts to parse the specified |