Instance Property

cachePolicy

The request’s cache policy.

Declaration

var cachePolicy: NSURLRequest.CachePolicy { get set }

Discussion

This property is ignored for requests used to construct URLSessionUploadTask and URLSessionDownloadTask objects, as caching is not supported by the URL Loading System for upload or download requests.

See Also

Working with a Cache Policy

enum NSURLRequest.CachePolicy

The constants used to specify interaction with the cached responses.