asp.net.ph

HttpCacheability Enumeration

System.Web Namespace


Provides enumerated values that are used to set the Cache-Control HTTP header.

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.

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.

For more information on HTTP cache-control headers, see Section 14.9 Cache-Control in the Hypertext Transfer Protocol ( HTTP/1.1 ) documentation, available from the World Wide Web Consortium.


See Also

HttpCachePolicy Class   Caching ASP.NET Pages Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph