Authored by Olivier Poitrey

Fix wrong cache policy used (fix #211)

@@ -106,7 +106,7 @@ NSString *const kCompletedCallbackKey = @"completed"; @@ -106,7 +106,7 @@ NSString *const kCompletedCallbackKey = @"completed";
106 if (performDownload) 106 if (performDownload)
107 { 107 {
108 // In order to prevent from potential duplicate caching (NSURLCache + SDImageCache) we disable the cache for image requests 108 // In order to prevent from potential duplicate caching (NSURLCache + SDImageCache) we disable the cache for image requests
109 - NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:15]; 109 + NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url cachePolicy:NSURLCacheStorageNotAllowed timeoutInterval:15];
110 operation = [SDWebImageDownloaderOperation.alloc initWithRequest:request options:options progress:^(NSUInteger receivedSize, long long expectedSize) 110 operation = [SDWebImageDownloaderOperation.alloc initWithRequest:request options:options progress:^(NSUInteger receivedSize, long long expectedSize)
111 { 111 {
112 dispatch_async(dispatch_get_main_queue(), ^ 112 dispatch_async(dispatch_get_main_queue(), ^