HttpCacheVaryByHeaders Class

HttpCacheVaryByHeaders Class

Provides a type-safe way to set the VaryByHeaders property that identifies the request headers that ASP.NET adds to the Vary HTTP header sent to the client.

For a list of all members of this type, see HttpCacheVaryByHeaders Members.


[Visual Basic]
NotInheritable Public Class HttpCacheVaryByHeaders
public sealed class HttpCacheVaryByHeaders
public __gc __sealed class HttpCacheVaryByHeaders
public class HttpCacheVaryByHeaders

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The HTTP Vary header indicates the request-header fields that the origin server uses to determine which of multiple cached responses is sent in response to a client request.

For more information on HTTP cache-control headers, see RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1, available on the World Wide Web Consortium Web site at See section 14, "Header Field Definitions", for complete details.


Namespace: System.Web

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

Assembly: System.Web (in System.Web.dll)

See Also

HttpCacheVaryByHeaders Members | System.Web Namespace

© 2015 Microsoft