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