This documentation is archived and is not being maintained.

HttpCachePolicy.VaryByHeaders Property

Gets the list of all HTTP headers that will be used to vary cache output.

[Visual Basic]
Public ReadOnly Property VaryByHeaders As HttpCacheVaryByHeaders
[C#]
public HttpCacheVaryByHeaders VaryByHeaders {get;}
[C++]
public: __property HttpCacheVaryByHeaders* get_VaryByHeaders();
[JScript]
public function get VaryByHeaders() : HttpCacheVaryByHeaders;

Property Value

An HttpCacheVaryByHeaders that specifies which HTTP headers are used to select the cached response.

Remarks

When a cached item has several vary headers, a separate version of the requested document is available from the cache for each HTTP header type.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace

Show: