Enumeration

NSURLRequestCachePolicy

The constants used to specify interaction with the cached responses.

Declaration

typedef enum NSURLRequestCachePolicy : NSUInteger {
    ...
} NSURLRequestCachePolicy;

Overview

The default policy is NSURLRequestUseProtocolCachePolicy.

Topics

Policies

NSURLRequestUseProtocolCachePolicy

Use the caching logic defined in the protocol implementation, if any, for a particular URL load request.

NSURLRequestReloadIgnoringLocalCacheData

The URL load should be loaded only from the originating source.

NSURLRequestReloadIgnoringLocalAndRemoteCacheData

Ignore local cache data, and instruct proxies and other intermediates to disregard their caches so far as the protocol allows.

NSURLRequestReturnCacheDataElseLoad

Use existing cache data, regardless or age or expiration date, loading from originating source only if there is no cached data.

NSURLRequestReturnCacheDataDontLoad

Use existing cache data, regardless or age or expiration date, and fail if no cached data is available.

NSURLRequestReloadRevalidatingCacheData

Use cache data if it can be validated by the origin source; otherwise, load from the origin.

See Also

Working with a Cache Policy

cachePolicy

The request’s cache policy.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software