HttpCacheability Enum
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.
Provides enumerated values that are used to set the Cache-Control
HTTP header.
public enum class HttpCacheability
public enum HttpCacheability
type HttpCacheability =
Public Enum HttpCacheability
- Inheritance
Name | Value | Description |
---|---|---|
NoCache | 1 | Sets the |
Private | 2 | Default value. Sets |
Server | 3 | Specifies that the response is cached only at the origin server. Similar to the NoCache option. Clients receive a |
ServerAndNoCache | 3 | Applies 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. |
Public | 4 | Sets |
ServerAndPrivate | 5 | Indicates that the response is cached at the server and at the client but nowhere else. Proxy servers are not allowed to cache the response. |
For more information, go to RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1, on the World Wide Web Consortium (W3C) Web site. In particular, for complete details, see Section 14.9 "Cache-Control" and Section 13, "Caching in HTTP."
Anteckning
NoCache
does not send the common HTTP 1.0 request directive Pragma: no-cache
.
Produkt | Versioner |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: