mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 08:43:47 +02:00
Merge pull request #16123 from MattHardcastle/dont-cache-thunder
Don't cache when fetching Thunder's build info
This commit is contained in:
commit
29b9800498
1 changed files with 2 additions and 3 deletions
|
@ -26,9 +26,8 @@
|
||||||
[request setValue:@USER_AGENT_STRING forHTTPHeaderField:@"User-Agent"];
|
[request setValue:@USER_AGENT_STRING forHTTPHeaderField:@"User-Agent"];
|
||||||
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
|
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
|
||||||
|
|
||||||
// We're using an ephermeral session here to ensure the tags api response is never cached.
|
request.cachePolicy = NSURLRequestReloadIgnoringLocalCacheData;
|
||||||
NSURLSession* session = [NSURLSession sessionWithConfiguration:NSURLSessionConfiguration.ephemeralSessionConfiguration];
|
NSURLSessionDataTask* dataTask = [NSURLSession.sharedSession dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
|
||||||
NSURLSessionDataTask* dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
|
|
||||||
NSLog(@"Latest Build Request error: %@", error);
|
NSLog(@"Latest Build Request error: %@", error);
|
||||||
NSLog(@"Latest Build Request Data: %@", data);
|
NSLog(@"Latest Build Request Data: %@", data);
|
||||||
NSHTTPURLResponse* ne = (NSHTTPURLResponse *)response;
|
NSHTTPURLResponse* ne = (NSHTTPURLResponse *)response;
|
||||||
|
|
Loading…
Reference in a new issue