Enum HttpCacheability
Provides enumerated values that are used to set the Cache-Control HTTP header.
public enum HttpCacheability
- Extension Methods
Fields
NoCache = 1Indicates that without a field name, a cache must force successful revalidation with the origin server before satisfying the request. With a field name, the cache may use the response to satisfy a subsequent request.
Private = 2Default value. Specifies that the response is cacheable only on the client, not by shared caches.
Public = 4Specifies that the response is cacheable by clients and shared caches.
Server = 3Specifies that the response should only be cached at the server. Clients receive headers equivalent to a NoCache directive.
ServerAndNoCache = 3Applies the settings of both Server and NoCache to indicate that the content is cached at the server but all others are explicitly denied the ability to cache the response.
ServerAndPrivate = 5Specifies that the response is cached at the server and at the client but nowhere else. Shared caches are not allowed to cache the response.