This documentation is archived and is not being maintained.
HttpCachePolicy Methods
Visual Studio 2010
The HttpCachePolicy type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddValidationCallback | Registers a validation callback for the current response. |
|
AppendCacheExtension | Appends the specified text to the Cache-Control HTTP header. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
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. |
|
SetCacheability(HttpCacheability) | Sets the Cache-Control header to one of the values of HttpCacheability. |
|
SetCacheability(HttpCacheability, String) | Sets the Cache-Control header to one of the values of HttpCacheability and appends an extension to the directive. |
|
SetETag | Sets the ETag HTTP header to the specified string. |
|
SetETagFromFileDependencies | Sets the ETag HTTP header based on the time stamps of the handler's file dependencies. |
|
SetExpires | Sets the Expires HTTP header to an absolute date and time. |
|
SetLastModified | Sets the Last-Modified HTTP header to the DateTime value supplied. |
|
SetLastModifiedFromFileDependencies | Sets the Last-Modified HTTP header based on the time stamps of the handler's file dependencies. |
|
SetMaxAge | Sets the Cache-Control: max-age HTTP header based on the specified time span. |
|
SetNoServerCaching | Stops all origin-server caching for the current response. |
|
SetNoStore | Sets the Cache-Control: no-store HTTP header. |
|
SetNoTransforms | Sets the Cache-Control: no-transform HTTP header. |
|
SetOmitVaryStar | Specifies whether the response should contain the vary:* header when varying by parameters. |
|
SetProxyMaxAge | Sets the Cache-Control: s-maxage HTTP header based on the specified time span. |
|
SetRevalidation | Sets the Cache-Control HTTP header to either the must-revalidate or the proxy-revalidate directives based on the supplied enumeration value. |
|
SetSlidingExpiration | Sets cache expiration to from absolute to sliding. |
|
SetValidUntilExpires | Specifies whether the ASP.NET cache should ignore HTTP Cache-Control headers sent by the client that invalidate the cache. |
|
SetVaryByCustom | Specifies a custom text string to vary cached output responses by. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Show: