Retrieves or assigns a Boolean value that indicates whether the cache should vary by accept type headers.
[Visual Basic] Public Property AcceptTypes As Boolean [C#] public bool AcceptTypes {get; set;} [C++] public: __property bool get_AcceptTypes(); public: __property void set_AcceptTypes(bool); [JScript] public function get AcceptTypes() : Boolean; public function set AcceptTypes(Boolean);
The default value is false. When set to true, this property causes the "Accept" value to be included in the HTTP "Vary" header sent to the client browser.
[Visual Basic] <% 'This example performs some action only if the AcceptTypes property 'is True. If Response.Cache.Vary.AcceptTypes = True Then ... End If %>
HttpCacheVary Class | HttpCacheVary Members | System.Web Namespace