Permalink
Browse files

Merge pull request #302 from n-miyo/fix_cache_policy

Wrong cache policy value.
  • Loading branch information...
rs committed Feb 20, 2013
2 parents f024890 + 15c5785 commit ae57215c2904ed2a8f5d2753243e131b0fefce15
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit ae57215

Please sign in to comment.