A predefined constant that determines when to return a response from the cache.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
This property determines the request caching policy used by tasks within sessions based on this configuration.
Set this property to one of the constants defined in
NSURLRequest to specify whether the cache policy should depend on expiration dates and age, whether the cache should be disabled entirely, and whether the server should be contacted to determine if the content has changed since it was last requested.
The default value is