Skip to main content
HttpCacheControl.ReadBehavior | readBehavior property

Applies to Windows and Windows Phone

Get or set the read behavior to use for cache control on the HttpCacheControl object.

Syntax


var readBehavior = httpCacheControl.readBehavior;
httpCacheControl.readBehavior = readBehavior;

public HttpCacheReadBehavior ReadBehavior { get; set; }

Public Property ReadBehavior As HttpCacheReadBehavior

public:
property HttpCacheReadBehavior ReadBehavior { 
   HttpCacheReadBehavior get();
   void set (HttpCacheReadBehavior value);
}

Property value

Type: HttpCacheReadBehavior

The read behavior to use for cache control.

Remarks

The ReadBehavior property on the HttpCacheControl object allows an app to get or set the read cache behavior to use on the HttpBaseProtocolFilter object. HTTP read requests can use the local HTTP cache for the responses. Content returned by HTTP requests can be written to the local HTTP cache.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http.Filters
Windows::Web::Http::Filters [C++]

Metadata

Windows.winmd

See also

CacheControl
HttpBaseProtocolFilter
HttpCacheControl
HttpCacheReadBehavior
WriteBehavior