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.
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.
Response.Cache.VaryByHeaders.propertyName = value;
Response.Cache.VaryByHeaders.methodName ( arguments );
Response.Cache.VaryByHeaders.propertyName = value
Response.Cache.VaryByHeaders.methodName ( arguments ) |
|
C# |
VB |
Type var = Response.Cache.VaryByHeaders.propertyName;
Dim var as Type = Response.Cache.VaryByHeaders.propertyName |
|
C# |
VB |
Caching Multiple Versions of a Page