Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Returning the Most Recent Cached Version THEN Downloading a New One #15

m619 opened this Issue Sep 10, 2012 · 1 comment


None yet
2 participants

m619 commented Sep 10, 2012

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. =]


artifacts commented Sep 26, 2014

There is a new option called kAFCacheReturnFileBeforeRevalidation causes AFCache to behave this way.


[self.cache cacheItemForURL:absoluteURL urlCredential:nil completionBlock:^(AFCacheableItem *item) {
    } failBlock:^(AFCacheableItem *item) {
    } progressBlock:^(AFCacheableItem *item) {
    } requestConfiguration: requestConfiguration];

@artifacts artifacts closed this Sep 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment