asp.net.ph

HttpCacheVaryByHeaders Class

System.Web Namespace


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.

HttpCacheVaryByHeaders Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HttpCacheVaryByHeaders ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public AcceptTypes Boolean [ Get , Set ]
public Item ( String header ) Boolean [ Get , Set ]
public UserAgent Boolean [ Get , Set ]
public UserCharSet Boolean [ Get , Set ]
public UserLanguage Boolean [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public GetHeaders ( ) String
public SetHeaders ( String headers ) Void
public VaryByUnspecifiedParameters ( ) Void

Remarks

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 background information on HTTP headers, see Section 14 Header Field Definitions in the Hypertext Transfer Protocol ( HTTP/1.1 ) documentation, available from the World Wide Web Consortium.

Syntax


To set a property or call a method:

Response.Cache.VaryByHeaders.propertyName = value;
Response.Cache.VaryByHeaders.methodName ( arguments );
  C# VB

To return the value of a property:

Type var = Response.Cache.VaryByHeaders.propertyName;
  C# VB

See Also

Caching Multiple Versions of a Page Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph