Authored by DreamPiggy

Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check

@@ -353,7 +353,7 @@ didReceiveResponse:(NSURLResponse *)response @@ -353,7 +353,7 @@ didReceiveResponse:(NSURLResponse *)response
353 353
354 NSCachedURLResponse *cachedResponse = proposedResponse; 354 NSCachedURLResponse *cachedResponse = proposedResponse;
355 355
356 - if (self.request.cachePolicy == NSURLRequestReloadIgnoringLocalCacheData) { 356 + if (!(self.options & SDWebImageDownloaderUseNSURLCache)) {
357 // Prevents caching of responses 357 // Prevents caching of responses
358 cachedResponse = nil; 358 cachedResponse = nil;
359 } 359 }