summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-09-29 15:31:26 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-09-30 17:29:09 +0200
commit5d34c18c808f1fb077f74869b08ff3dc959cb638 (patch)
tree10439a2e67e7f1f21da8b683b49273bf0bc0f247 /common
parent5c6863c5405c6f8dd66ebc65658dd28a7a1e4078 (diff)
downloadqtlocation-mapboxgl-5d34c18c808f1fb077f74869b08ff3dc959cb638.tar.gz
disable URLcache for NSURLRequests
Diffstat (limited to 'common')
-rw-r--r--common/http_request_baton_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/http_request_baton_cocoa.mm b/common/http_request_baton_cocoa.mm
index 2ebbec481c..623b2311be 100644
--- a/common/http_request_baton_cocoa.mm
+++ b/common/http_request_baton_cocoa.mm
@@ -29,9 +29,9 @@ void HTTPRequestBaton::start(const util::ptr<HTTPRequestBaton> &ptr) {
sessionConfig.timeoutIntervalForResource = 30;
sessionConfig.HTTPMaximumConnectionsPerHost = 8;
sessionConfig.requestCachePolicy = NSURLRequestReloadIgnoringLocalCacheData;
+ sessionConfig.URLCache = nil;
session = [NSURLSession sessionWithConfiguration:sessionConfig];
- // TODO: add a delegate to the session that prohibits caching, since we handle this ourselves.
});
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@(baton->path.c_str())]];