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
public HttpCacheVaryByHeaders VaryByHeaders {get;}
public: __property HttpCacheVaryByHeaders* get_VaryByHeaders();
public function get VaryByHeaders() : HttpCacheVaryByHeaders;

Property Value

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


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.


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

See Also

HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace