Authored by herrernst

prevent caching of responses in Cache.db

@@ -253,6 +253,12 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot @@ -253,6 +253,12 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot
253 self.imageData = nil; 253 self.imageData = nil;
254 } 254 }
255 255
  256 +//prevent caching of responses in Cache.db
  257 +- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse
  258 +{
  259 + return nil;
  260 +}
  261 +
256 #pragma mark SDWebImageDecoderDelegate 262 #pragma mark SDWebImageDecoderDelegate
257 263
258 - (void)imageDecoder:(SDWebImageDecoder *)decoder didFinishDecodingImage:(UIImage *)image userInfo:(NSDictionary *)aUserInfo 264 - (void)imageDecoder:(SDWebImageDecoder *)decoder didFinishDecodingImage:(UIImage *)image userInfo:(NSDictionary *)aUserInfo