HttpCachePolicyWrapper 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.
Encapsulates the HTTP intrinsic object that contains methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.
public ref class HttpCachePolicyWrapper : System::Web::HttpCachePolicyBase
public class HttpCachePolicyWrapper : System.Web.HttpCachePolicyBase
type HttpCachePolicyWrapper = class
inherit HttpCachePolicyBase
Public Class HttpCachePolicyWrapper
Inherits HttpCachePolicyBase
- Inheritance
Remarks
The HttpCachePolicyWrapper class derives from the HttpCachePolicyBase class and serves as a wrapper for the HttpCachePolicy class. This class exposes the functionality of the HttpCachePolicy class while also exposing the HttpCachePolicyBase type. The HttpCachePolicyBase class enables you to replace the original implementation of the HttpCachePolicy class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.
Constructors
HttpCachePolicyWrapper(HttpCachePolicy) |
Initializes a new instance of the HttpCachePolicyWrapper class. |
Properties
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) |
GetHashCode() |
Serves as the default hash function. (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(Boolean) |
Makes the response available in the browser history cache, regardless of the HttpCacheability setting made on the server. |
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 contains the |
SetProxyMaxAge(TimeSpan) |
Sets the |
SetRevalidation(HttpCacheRevalidation) |
Sets the |
SetSlidingExpiration(Boolean) |
Sets cache expiration to absolute or sliding. |
SetValidUntilExpires(Boolean) |
Specifies whether the ASP.NET cache should ignore HTTP |
SetVaryByCustom(String) |
Specifies a text string to vary cached output responses by. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |