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

This commit is contained in:
DreamPiggy 2018-01-30 12:50:50 +08:00
parent 37a062adc2
commit 5b7f669bc1
1 changed files with 1 additions and 1 deletions

View File

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