HttpCacheWriteBehavior Enum

Definition

Indicates if content returned by requests used by class methods in the Windows.Web.Http and Windows.Web.Http.Filters namespaces is written to the local HTTP cache.

public enum class HttpCacheWriteBehavior
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class HttpCacheWriteBehavior
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum HttpCacheWriteBehavior
var value = Windows.Web.Http.Filters.HttpCacheWriteBehavior.default
Public Enum HttpCacheWriteBehavior
Inheritance
HttpCacheWriteBehavior
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Default 0

Use the default behavior of WinInet. This usually results in writing the response to the local HTTP cache.

NoCache 1

Never write the response to the local HTTP cache.

Applies to

See also