How to use the NSURLRequestReloadRevalidatingCacheData cache policy

These links mention

iOS - Download file only if modified (NSURL and NSData)

http://nshipster.com/nsurlcache/

that NSURLRequestReloadRevalidatingCacheData is not yet implemented in ios7.

Is this implemented in iOS 11?

If so, can you tell me how to use it?

If not, what are the alternatives / guidelines for checking the cache on the server before using it?

Thank!

+3


source to share


1 answer


NSURLRequestReloadRevalidatingCacheData (ReloadRevalidatingCacheData in Swift) is still not implemented in iOS9.



You can manually implement this behavior by sending a HEAD network request and checking the last modified date. Here's how to do it: iOS - Download file only if modified (NSURL and NSData)

+3


source







All Articles