From df408f82666dbe32a43405942971383173e7b592 Mon Sep 17 00:00:00 2001 From: Sakari Tuominen Date: Wed, 5 Sep 2018 10:01:59 +0300 Subject: [PATCH] Disable local caching since there is no option to control it --- ios/RNFetchBlobRequest.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ios/RNFetchBlobRequest.m b/ios/RNFetchBlobRequest.m index a56cc92d0..2f83f1ded 100644 --- a/ios/RNFetchBlobRequest.m +++ b/ios/RNFetchBlobRequest.m @@ -117,6 +117,8 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options defaultConfigObject = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:taskId]; } + defaultConfigObject.requestCachePolicy = NSURLRequestReloadIgnoringLocalCacheData; + // request timeout, -1 if not set in options float timeout = [options valueForKey:@"timeout"] == nil ? -1 : [[options valueForKey:@"timeout"] floatValue];