CacheOptions Enumeration
Defines the set of HTTP response cache control options that can be used with the HTTP Cache-Control header field for an HttpResponseMessage. This is used by the CachePolicyProvider to define which HTTP caching response headers to use if no HTTP caching response headers have been set on an HttpResponseMessage.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: Microsoft.WindowsAzure.Mobile.Service.Cache
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Syntax
[FlagsAttribute]
public enum CacheOptions
[FlagsAttribute]
public enum class CacheOptions
[<FlagsAttribute>]
type CacheOptions
<FlagsAttribute>
Public Enumeration CacheOptions
Members
Member name | Description | |
---|---|---|
MustRevalidate | The "must-revalidate" response directive indicates that once it has become stale, a cache MUST NOT use the response to satisfy subsequent requests without successful validation on the origin server. |
|
NoCache | The "no-cache" response directive indicates that the response MUST NOT be used to satisfy a subsequent request without successful validation on the origin server. |
|
None | Don't include any cache control directives. |
|
NoStore | The "no-store" response directive indicates that a cache MUST NOT store any part of either the immediate request or response. This directive applies to both private and shared caches. |
|
NoTransform | The "no-transform" response directive indicates that an intermediary (regardless of whether it implements a cache) MUST NOT transform the payload. |
|
Private | The "private" response directive indicates that the response message is intended for a single user and MUST NOT be stored by a shared cache. A private cache MAY store the response and reuse it for later requests, even if the response would normally be non-cacheable. |
|
ProxyRevalidate | The "proxy-revalidate" response directive has the same meaning as the must-revalidate response directive, except that it does not apply to private caches. |
|
Public | The "public" response directive indicates that any cache MAY store the response, even if the response would normally be non-cacheable or cacheable only within a private cache. |
See Also
Microsoft.WindowsAzure.Mobile.Service.Cache Namespace
Return to top