Fixing default cache policy for URL requests objects in UIImageView category
This commit is contained in:
parent
0e93cf0840
commit
97191228e0
@ -71,7 +71,7 @@ static char kAFImageRequestOperationObjectKey;
|
||||
- (void)setImageWithURL:(NSURL *)url
|
||||
placeholderImage:(UIImage *)placeholderImage
|
||||
{
|
||||
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLCacheStorageAllowed timeoutInterval:30.0];
|
||||
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:30.0];
|
||||
[request setHTTPShouldHandleCookies:NO];
|
||||
[request setHTTPShouldUsePipelining:YES];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user