We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSURL -resourceDataUsingCache: seems to ignore the flag... is this on purpose?
- (NSData*) resourceDataUsingCache: (BOOL)shouldUseCache { NSURLHandle *handle = [self URLHandleUsingCache: YES]; NSData *data = nil; if ([handle status] == NSURLHandleLoadSucceeded) { data = [handle availableResourceData]; } if (shouldUseCache == NO || [handle status] != NSURLHandleLoadSucceeded) { data = [handle loadInForeground]; } if (nil == data) { data = [handle availableResourceData]; } return data; }
The text was updated successfully, but these errors were encountered:
It does use the flag:
if (shouldUseCache == NO || [handle status] != NSURLHandleLoadSucceeded)
The flag controls whether cached data is returned, not whether a cached URL is used to supply it. So yes, I believe this is intentional.
Sorry, something went wrong.
Shouldn't the call to
NSURLHandle *handle = [self URLHandleUsingCache: YES];
also use this?
Ok, I am closing this.
rfm
No branches or pull requests
NSURL -resourceDataUsingCache: seems to ignore the flag... is this on purpose?
The text was updated successfully, but these errors were encountered: