Merge pull request #744 from Pei116/master

fixed SDWebImageRefreshCached bug for large images
This commit is contained in:
Bogdan Poplauschi 2014-06-10 13:38:28 +03:00
commit caf3299c27
1 changed files with 5 additions and 1 deletions

View File

@ -338,7 +338,11 @@
[[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
SDWebImageDownloaderCompletedBlock completionBlock = self.completedBlock;
if (![[NSURLCache sharedURLCache] cachedResponseForRequest:_request]) {
responseFromCached = NO;
}
if (completionBlock) {
if (self.options & SDWebImageDownloaderIgnoreCachedResponse && responseFromCached) {
completionBlock(nil, nil, nil, YES);