HttpCachePolicy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.
public ref class HttpCachePolicy sealed
public sealed class HttpCachePolicy
type HttpCachePolicy = class
Public NotInheritable Class HttpCachePolicy
- Inheritance
-
HttpCachePolicy
Remarks
For background information about HTTP headers and controlling caching, see RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1, available on the World Wide Web Consortium (W3C) Web site.
Properties
UtcTimestampCreated |
Gets or sets the timestamp in Coordinated Universal Time (UTC) for the HttpCachePolicy. |
VaryByContentEncodings |
Gets the list of |
VaryByHeaders |
Gets the list of all HTTP headers that will be used to vary cache output. |
VaryByParams |
Gets the list of parameters received by an HTTP |
Methods
AddValidationCallback(HttpCacheValidateHandler, Object) |
Registers a validation callback for the current response. |
AppendCacheExtension(String) |
Appends the specified text to the |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetCacheability() |
Gets the cache-control directive. |
GetCacheExtensions() |
Gets the cache extensions. |
GetETag() |
Gets the ETag. |
GetETagFromFileDependencies() |
Gets the status indicating whether the |
GetExpires() |
Gets the expire header. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetIgnoreRangeRequests() |
Gets the status of ignore range requests. |
GetLastModifiedFromFileDependencies() |
Gets the status of the Last-Modified header set to base on the timestamps of the file dependencies of the handler. |
GetMaxAge() |
Gets the cache-control max age. |
GetNoServerCaching() |
Gets the status of server caching for the current response. |
GetNoStore() |
Gets the status of the store. |
GetNoTransforms() |
Gets the status of the HTTP No-Transform Directive. |
GetOmitVaryStar() |
Gets the status of the |
GetProxyMaxAge() |
Gets the HTTP Cache-Control: Proxy Max Age. |
GetRevalidation() |
Gets the Cache-Control: header to reflect either the must-revalidate or proxy-revalidate directives. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
GetUtcLastModified() |
Gets the value of the |
GetVaryByCustom() |
Gets the custom string that is used to vary the HTTP caching. |
HasSlidingExpiration() |
Gets a value which specifies whether the cache has a sliding expiration policy. |
IsModified() |
Gets a value which specifies whether the HTTP cache has been modified. |
IsValidUntilExpires() |
Gets a value which specifies whether the ASP.NET cache should ignore HTTP |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
SetAllowResponseInBrowserHistory(Boolean) |
Makes the response is available in the client browser History cache, regardless of the HttpCacheability setting made on the server, when the |
SetCacheability(HttpCacheability, String) |
Sets the |
SetCacheability(HttpCacheability) |
Sets the |
SetETag(String) |
Sets the |
SetETagFromFileDependencies() |
Sets the |
SetExpires(DateTime) |
Sets the |
SetLastModified(DateTime) |
Sets the |
SetLastModifiedFromFileDependencies() |
Sets the |
SetMaxAge(TimeSpan) |
Sets the |
SetNoServerCaching() |
Stops all origin-server caching for the current response. |
SetNoStore() |
Sets the |
SetNoTransforms() |
Sets the |
SetOmitVaryStar(Boolean) |
Specifies whether the response should contain the |
SetProxyMaxAge(TimeSpan) |
Sets the |
SetRevalidation(HttpCacheRevalidation) |
Sets the |
SetSlidingExpiration(Boolean) |
Sets cache expiration to from absolute to sliding. |
SetValidUntilExpires(Boolean) |
Specifies whether the ASP.NET cache should ignore HTTP |
SetVaryByCustom(String) |
Specifies a custom text string to vary cached output responses by. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |