PageAdapter.CacheVaryByHeaders Property
Assembly: System.Web (in system.web.dll)
/** @property */ public StringCollection get_CacheVaryByHeaders ()
public function get CacheVaryByHeaders () : StringCollection
Not applicable.
Property Value
An IList that contains a list of HTTP headers; otherwise, a null reference (Nothing in Visual Basic).Entities on the Web that cache Web pages cache multiple versions, based on the HTTP headers and other factors. For example, a version for each language in which a page is generated is typically cached, based on the Accept-Language HTTP header.
For specific browsers, it might be necessary to vary caching by HTTP headers in addition to the headers that control target-independent caching. For example, it might be necessary to cache different versions of a page for different screen sizes.
The header names returned by the CacheVaryByHeaders property are added to the list of headers on the Vary HTTP header sent to the client browser.
Notes to Inheritors: When you inherit from the PageAdapter class, you can override the CacheVaryByHeaders property to return a list of the additional headers to control target-specific caching. The CacheVaryByHeaders base property returns a null reference (Nothing in Visual Basic).Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.