Post

Replies

Boosts

Views

Activity

NSURLRequest.CachePolicy
According to the documentation https://developer.apple.com/documentation/foundation/nsurlrequest.cachepolicy if I'm using the NSURLRequestUseProtocolCachePolicy option and the response stale, system issues a HEAD request. But if there is no internet connection, this request could not be completed so NSURLRequest cannot determine whether the HEAD changed and decide should it return the cached response.Is there a way to force NSURLRequest to use the cached response if there is no connection and cache policy is NSURLRequestUseProtocolCachePolicy?
4
0
1.8k
Jun ’17