Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpCachePolicy Methods

The HttpCachePolicy type exposes the following members.

  Name Description
Public method AddValidationCallback Registers a validation callback for the current response.
Public method AppendCacheExtension Appends the specified text to the Cache-Control HTTP header.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method SetAllowResponseInBrowserHistory Makes the response is available in the client browser History cache, regardless of the HttpCacheability setting made on the server, when the allow parameter is true.
Public method SetCacheability(HttpCacheability) Sets the Cache-Control header to one of the values of HttpCacheability.
Public method SetCacheability(HttpCacheability, String) Sets the Cache-Control header to one of the values of HttpCacheability and appends an extension to the directive.
Public method SetETag Sets the ETag HTTP header to the specified string.
Public method SetETagFromFileDependencies Sets the ETag HTTP header based on the time stamps of the handler's file dependencies.
Public method SetExpires Sets the Expires HTTP header to an absolute date and time.
Public method SetLastModified Sets the Last-Modified HTTP header to the DateTime value supplied.
Public method SetLastModifiedFromFileDependencies Sets the Last-Modified HTTP header based on the time stamps of the handler's file dependencies.
Public method SetMaxAge Sets the Cache-Control: max-age HTTP header based on the specified time span.
Public method SetNoServerCaching Stops all origin-server caching for the current response.
Public method SetNoStore Sets the Cache-Control: no-store HTTP header.
Public method SetNoTransforms Sets the Cache-Control: no-transform HTTP header.
Public method SetOmitVaryStar Specifies whether the response should contain the vary:* header when varying by parameters.
Public method SetProxyMaxAge Sets the Cache-Control: s-maxage HTTP header based on the specified time span.
Public method SetRevalidation Sets the Cache-Control HTTP header to either the must-revalidate or the proxy-revalidate directives based on the supplied enumeration value.
Public method SetSlidingExpiration Sets cache expiration to from absolute to sliding.
Public method SetValidUntilExpires Specifies whether the ASP.NET cache should ignore HTTP Cache-Control headers sent by the client that invalidate the cache.
Public method SetVaryByCustom Specifies a custom text string to vary cached output responses by.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.