HttpCacheReadBehavior HttpCacheReadBehavior HttpCacheReadBehavior HttpCacheReadBehavior HttpCacheReadBehavior Enum

Definition

Indicates if read requests by class methods in the Windows.Web.Http and Windows.Web.Http.Filters namespaces use the local HTTP cache for the response.

public : enum class HttpCacheReadBehavior
enum class winrt::Windows::Web::Http::Filters::HttpCacheReadBehavior : int32_t
public enum HttpCacheReadBehavior
Public Enum HttpCacheReadBehavior
var value = Windows.Web.Http.Filters.HttpCacheReadBehavior.default;
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Default Default Default Default Default 0

Always use the cache algorithm specified in RFC 2616 by the IETF to optimize network bandwidth.

MostRecent MostRecent MostRecent MostRecent MostRecent 1

Use the local HTTP cache if possible but always ask the server if more recent content is available.

The server returns an HTTP status code of 200 (OK) or 304 (Not Modified) when the local content is the most recent.

NoCache NoCache NoCache NoCache NoCache 3

Do not use cache nor do a conditional request. This ensures that all HTTP requests go directly to the server.

OnlyFromCache OnlyFromCache OnlyFromCache OnlyFromCache OnlyFromCache 2

Only use data from the local HTTP cache. This is the offline behavior.

Remarks

Version history

Windows version SDK version Value added
1607 14393 NoCache

See also