From e91cbcf0aa15c3637698f61c2e54b411778b4122 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Mon, 5 Nov 2012 17:54:31 +0100 Subject: [PATCH] Fix wrong cache policy used (fix #211) --- SDWebImage/SDWebImageDownloader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageDownloader.m b/SDWebImage/SDWebImageDownloader.m index ee128396..769ae49a 100644 --- a/SDWebImage/SDWebImageDownloader.m +++ b/SDWebImage/SDWebImageDownloader.m @@ -106,7 +106,7 @@ NSString *const kCompletedCallbackKey = @"completed"; if (performDownload) { // In order to prevent from potential duplicate caching (NSURLCache + SDImageCache) we disable the cache for image requests - NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:15]; + NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url cachePolicy:NSURLCacheStorageNotAllowed timeoutInterval:15]; operation = [SDWebImageDownloaderOperation.alloc initWithRequest:request options:options progress:^(NSUInteger receivedSize, long long expectedSize) { dispatch_async(dispatch_get_main_queue(), ^