This documentation is archived and is not being maintained.
HttpCacheability Enumeration
.NET Framework 1.1
Provides enumerated values that are used to set the Cache-Control HTTP header.
[Visual Basic] <Serializable> Public Enum HttpCacheability [C#] [Serializable] public enum HttpCacheability [C++] [Serializable] __value public enum HttpCacheability [JScript] public Serializable enum HttpCacheability
Members
| Member name | Description |
|---|---|
| NoCache | Sets the Cache-Control: no-cache header. Without a field name, the directive applies to the entire request and a shared (proxy server) cache must force a successful revalidation with the origin Web server before satisfying the request. With a field name, the directive applies only to the named field;the rest of the response may be supplied from a shared cache.
For more information, refer to RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1, available on the World Wide Web Consortium's site at http://www.w3c.org. See section 14.9 "Cache-Control" and section 13, "Caching in HTTP" for complete details. Note: NoCache does not send the common HTTP 1.0 request directive Pragma: no-cache. |
| Private | Default value. Sets Cache-Control: private to specify that the response is cacheable only on the client and not by shared (proxy server) caches. |
| Public | Sets Cache-Control: public to specify that the response is cacheable by clients and shared (proxy) caches. |
| Server | Specifies that the response is cached only at the origin server. Similar to the NoCache option. Clients receive a Cache-Control: no-cache directive but the document is cached on the origin server. |
| ServerAndNoCache | 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. |
| ServerAndPrivate | 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. |
Requirements
Namespace: System.Web
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Web (in System.Web.dll)
See Also
Show: