Closed m619 closed 9 years ago
There is a new option called kAFCacheReturnFileBeforeRevalidation causes AFCache to behave this way.
Example
[self.cache cacheItemForURL:absoluteURL urlCredential:nil completionBlock:^(AFCacheableItem *item) { --- } failBlock:^(AFCacheableItem *item) { ... } progressBlock:^(AFCacheableItem *item) { ... } requestConfiguration: requestConfiguration];
I was wondering if AFCache can be used in the described way? It can help keep UIs way more responsive than simply waiting to retrieve the newest version of a file. If it can't be done with AFCache currently can you please describe which way would this be best implemented? Thank you. =]