System.Web.HttpCacheVaryByParams Class

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

See Also: HttpCacheVaryByParams Members


public sealed class HttpCacheVaryByParams


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:// site. See section 14, "Header Field Definitions", for complete details.


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