Instance Property


The request’s cache policy.


var cachePolicy: NSURLRequest.CachePolicy { get set }


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.