Skip to content

Commit

Permalink
Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache …
Browse files Browse the repository at this point in the history
…to check
  • Loading branch information
dreampiggy committed Jan 30, 2018
1 parent 37a062a commit 5b7f669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImage/SDWebImageDownloaderOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ - (void)URLSession:(NSURLSession *)session

NSCachedURLResponse *cachedResponse = proposedResponse;

if (self.request.cachePolicy == NSURLRequestReloadIgnoringLocalCacheData) {
if (!(self.options & SDWebImageDownloaderUseNSURLCache)) {
// Prevents caching of responses
cachedResponse = nil;
}
Expand Down

0 comments on commit 5b7f669

Please sign in to comment.