This documentation is archived and is not being maintained.
HttpCachePolicyBase Members
Visual Studio 2008
Serves as the base class for classes that contain methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.
The HttpCachePolicyBase type exposes the following members.
| Name | Description | |
|---|---|---|
|
HttpCachePolicyBase | Initializes the class for use by an inherited class instance. This constructor can only be called by an inherited class. |
| Name | Description | |
|---|---|---|
|
AddValidationCallback | When overridden in a derived class, registers a validation callback for the current response. |
|
AppendCacheExtension | When overridden in a derived class, appends the specified text to the Cache-Control HTTP header. |
|
Equals | 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 | When overridden in a derived class, makes the response available in the browser history cache, regardless of the HttpCacheability setting made on the server. |
|
SetCacheability | Overloaded. When overridden in a derived class, sets the Cache-Control header to one of the HttpCacheability values. |
|
SetETag | When overridden in a derived class, sets the ETag HTTP header to the specified string. |
|
SetETagFromFileDependencies | When overridden in a derived class, sets the ETag HTTP header based on the time stamps of the handler's file dependencies. |
|
SetExpires | When overridden in a derived class, sets the Expires HTTP header to an absolute date and time. |
|
SetLastModified | When overridden in a derived class, sets the Last-Modified HTTP header to the specified date and time. |
|
SetLastModifiedFromFileDependencies | When overridden in a derived class, sets the Last-Modified HTTP header based on the time stamps of the handler's file dependencies. |
|
SetMaxAge | When overridden in a derived class, sets the Cache-Control: max-age HTTP header to the specified time span. |
|
SetNoServerCaching | When overridden in a derived class, stops all origin-server caching for the current response. |
|
SetNoStore | When overridden in a derived class, sets the Cache-Control: no-store HTTP header. |
|
SetNoTransforms | When overridden in a derived class, sets the Cache-Control: no-transform HTTP header. |
|
SetOmitVaryStar | When overridden in a derived class, specifies whether the response contains the vary:* header when caching varies by parameters. |
|
SetProxyMaxAge | When overridden in a derived class, sets the Cache-Control: s-maxage HTTP header to the specified time span. |
|
SetRevalidation | When overridden in a derived class, sets the Cache-Control HTTP header to either the must-revalidate or the proxy-revalidate directives, based on the specified enumeration value. |
|
SetSlidingExpiration | When overridden in a derived class, sets cache expiration to absolute or sliding. |
|
SetValidUntilExpires | When overridden in a derived class, specifies whether the ASP.NET cache should ignore HTTP Cache-Control headers that are sent by the client that invalidate the cache. |
|
SetVaryByCustom | When overridden in a derived class, specifies a text string to vary cached output responses by. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
VaryByContentEncodings | When overridden in a derived class, gets the list of Content-Encoding headers that are used to vary the output cache. |
|
VaryByHeaders | When overridden in a derived class, gets the list of all HTTP headers that are used to vary cache output. |
|
VaryByParams | When overridden in a derived class, gets the list of parameters that are received by an HTTP GET or POST verb that affect caching. |
Show: