diff --git a/SDWebImage/SDWebImageManager.m b/SDWebImage/SDWebImageManager.m index 1dcd3768..93690a00 100644 --- a/SDWebImage/SDWebImageManager.m +++ b/SDWebImage/SDWebImageManager.m @@ -166,7 +166,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]; } });