Skip to content
This repository
Browse code

Force progressive download off when force refresh is on #326

  • Loading branch information...
commit 9b574e58bf9b14b663ef09f869efd940a8eddb7e 1 parent f097ef7
Olivier Poitrey authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  SDWebImage/SDWebImageManager.m
1  SDWebImage/SDWebImageManager.m
@@ -108,6 +108,7 @@ - (NSString *)cacheKeyForURL:(NSURL *)url
108 108 if (options & SDWebImageLowPriority) downloaderOptions |= SDWebImageDownloaderLowPriority;
109 109 if (options & SDWebImageProgressiveDownload) downloaderOptions |= SDWebImageDownloaderProgressiveDownload;
110 110 if (options & SDWebImageRefreshCached) downloaderOptions |= SDWebImageDownloaderEnableNSURLCache;
  111 + if (image && options & SDWebImageRefreshCached) downloaderOptions ^= SDWebImageDownloaderProgressiveDownload; // force progressive off if image is refreshing
111 112 __block id<SDWebImageOperation> subOperation = [self.imageDownloader downloadImageWithURL:url options:downloaderOptions progress:progressBlock completed:^(UIImage *downloadedImage, NSData *data, NSError *error, BOOL finished)
112 113 {
113 114 if (weakOperation.cancelled)

0 comments on commit 9b574e5

Please sign in to comment.
Something went wrong with that request. Please try again.