System.Web.Configuration.OutputCacheProfile.VaryByHeader Property

Gets or sets the OutputCacheProfile.VaryByHeader property.

Syntax

[System.Configuration.ConfigurationProperty("varyByHeader")]
public string VaryByHeader { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The OutputCacheProfile.VaryByHeader is a semicolon-delimited set of headers used to vary the cached output. These are HTTP headers associated with the request. For more information, see Caching Multiple Versions of a Page.

Note:

The OutputCacheProfile.VaryByHeader settings are the same ones used by the VaryByHeader attribute of the @ OutputCache. Varying by all headers by setting the value of "*" is not recommended. It can result in cache overflow or a denial of service attack on the Web server.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0