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 HttpCacheReadBehaviorpublic enum HttpCacheReadBehaviorPublic Enum HttpCacheReadBehavior// You can use this enum in JavaScript.
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

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

MostRecent MostRecent MostRecent MostRecent

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

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

OnlyFromCache OnlyFromCache OnlyFromCache OnlyFromCache

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