diff --git a/SDWebImage/SDWebImageManager.m b/SDWebImage/SDWebImageManager.m index c5dafcdb..50d247bf 100644 --- a/SDWebImage/SDWebImageManager.m +++ b/SDWebImage/SDWebImageManager.m @@ -160,7 +160,7 @@ if (transformedImage && finished) { - NSData *dataToStore = isImageGIF ? data : nil; + NSData *dataToStore = [transformedImage isEqual:downloadedImage] ? data : nil; [self.imageCache storeImage:transformedImage imageData:dataToStore forKey:key toDisk:cacheOnDisk]; } });