Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check
This commit is contained in:
parent
37a062adc2
commit
5b7f669bc1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue