Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #302 from n-miyo/fix_cache_policy

Wrong cache policy value.
  • Loading branch information...
commit ae57215c2904ed2a8f5d2753243e131b0fefce15 2 parents f024890 + 15c5785
@rs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  SDWebImage/SDWebImageDownloader.m
View
2  SDWebImage/SDWebImageDownloader.m
@@ -120,7 +120,7 @@ - (NSInteger)maxConcurrentDownloads
[self addProgressCallback:progressBlock andCompletedBlock:completedBlock forURL:url createCallback:^
{
// In order to prevent from potential duplicate caching (NSURLCache + SDImageCache) we disable the cache for image requests
- NSMutableURLRequest *request = [NSMutableURLRequest.alloc initWithURL:url cachePolicy:NSURLCacheStorageNotAllowed timeoutInterval:15];
+ NSMutableURLRequest *request = [NSMutableURLRequest.alloc initWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:15];
request.HTTPShouldHandleCookies = NO;
request.HTTPShouldUsePipelining = YES;
request.allHTTPHeaderFields = wself.HTTPHeaders;
Please sign in to comment.
Something went wrong with that request. Please try again.