Merge pull request #211 from herrernst/master

Prevent caching of responses in Cache.db
This commit is contained in:
Olivier Poitrey 2012-11-05 10:54:22 -08:00
commit 6df9f76669
1 changed files with 6 additions and 0 deletions

View File

@ -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