System.Web.HttpCacheVaryByHeaders Class

Provides a type-safe way to set the HttpCachePolicy.VaryByHeaders property.

See Also: HttpCacheVaryByHeaders Members

Syntax

public sealed class HttpCacheVaryByHeaders

Remarks

The HttpCachePolicy.VaryByHeaders property identifies which request header parameters ASP.NET uses to uniquely identify a variation of the response when there are multiple cached responses for a resource. This is useful when a response depends on a set of client inputs, such as headers or parameters.

The System.Web.HttpCacheVaryByHeaders is not directly related to HTTP cache-control headers, but helps ensure that a client or proxy varies by the specified headers. For more information about VaryByHeaders, see RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1, available on the tp://go.microsoft.com/fwlink/?linkid=37125. See section 14, "Header Field Definitions", for complete details.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0