Contents

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