System.Web.HttpCacheVaryByParams Class

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

See Also: HttpCacheVaryByParams Members

Syntax

public sealed class HttpCacheVaryByParams

Remarks

The HttpCachePolicy.VaryByParams property identifies which HTTP Get or Post 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.HttpCacheVaryByParams is not directly related to HTTP cache-control headers, but helps ensure that a client or proxy varies by the specified parameters. For more information about VaryByParams, see RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1, available on the tp://go.microsoft.com/fwlink/?linkid=37125 site. 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