HttpCachePolicy.SetVaryByCustom Method
.NET Framework 3.0
Specifies a custom text string to vary cached output responses by.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following code example demonstrates how to set the custom vary string to "Accept-Charset", which causes the origin-server's cache to choose one of several cached responses depending on the browser's Accept-Charset header.
get_Response().get_Cache().SetVaryByCustom("Accept-Charset");
Response.Cache.SetVaryByCustom("Accept-Charset")
Community Additions
ADD
Show: