Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 | } |
-
Please register or login to post a comment