From 980226ccb78754e02a4cf665283d48a338082e2d Mon Sep 17 00:00:00 2001 From: herrernst Date: Mon, 5 Nov 2012 17:20:33 +0100 Subject: [PATCH] prevent caching of responses in Cache.db --- SDWebImage/SDWebImageDownloader.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SDWebImage/SDWebImageDownloader.m b/SDWebImage/SDWebImageDownloader.m index 6285880..c99b057 100644 --- a/SDWebImage/SDWebImageDownloader.m +++ b/SDWebImage/SDWebImageDownloader.m @@ -253,6 +253,12 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot self.imageData = nil; } +//prevent caching of responses in Cache.db +- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse +{ + return nil; +} + #pragma mark SDWebImageDecoderDelegate - (void)imageDecoder:(SDWebImageDecoder *)decoder didFinishDecodingImage:(UIImage *)image userInfo:(NSDictionary *)aUserInfo