Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #859 from cds-snc/feature/440-ios-cache-control
Browse files Browse the repository at this point in the history
Force NSURLSession to not cache anything.
  • Loading branch information
timarney authored Jul 24, 2020
2 parents 35a6b3e + 208f9b1 commit 5071b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/CovidShield/CovidShield.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ @implementation CovidShield

RCT_REMAP_METHOD(downloadDiagnosisKeysFile, downloadDiagnosisKeysFileWithURL:(NSString *)url WithResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
{
NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration ephemeralSessionConfiguration]];
NSURL *taskURL = [RCTConvert NSURL:url];
[[session downloadTaskWithURL:taskURL
completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
Expand Down

0 comments on commit 5071b63

Please sign in to comment.