HttpCachePolicy::SetVaryByCustom Method (String^)
Specifies a custom text string to vary cached output responses by.
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.
Available since 1.1