This documentation is archived and is not being maintained.
HttpCachePolicy Members
.NET Framework 1.1
Public Properties
VaryByHeaders | Gets the list of all HTTP headers that will be used to vary cache output. |
VaryByParams | Gets the list of parameters received by a GET (querystring) or POST (in the body of the HTTP request) that affect caching. |
Public Methods
AddValidationCallback | Registers a validation callback for the current response. |
AppendCacheExtension | Appends the specified text to the Cache-Control HTTP header. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) | Gets the Type of the current instance. |
SetAllowResponseInBrowserHistory | When set to true, the response is available in the client browser History cache regardless of the HttpCacheability setting made on the server. |
SetCacheability | Overloaded. Sets the Cache-Control HTTP header. The Cache-Control HTTP header controls how documents are to be cached on the network. |
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 directive. |
SetNoTransforms | Sets the CacheControl: no-transform directive. |
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 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 (inherited from Object) | Returns a String that represents the current Object. |
Protected Methods
Finalize (inherited from Object) | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
See Also
Show:
