* use handle from the cache only if the caller asked

This commit is contained in:
Sergei Golovin 2022-01-30 06:54:56 +04:00
parent 6657796e15
commit cce60ccc51

View file

@ -1577,7 +1577,7 @@ static NSUInteger urlAlign;
- (void) loadResourceDataNotifyingClient: (id)client
usingCache: (BOOL)shouldUseCache
{
NSURLHandle *handle = [self URLHandleUsingCache: YES];
NSURLHandle *handle = [self URLHandleUsingCache: shouldUseCache];
NSData *d;
if (shouldUseCache == YES && (d = [handle availableResourceData]) != nil)