Skip to content

Conversation

sakarit-zz
Copy link

The default cache policy is NSURLRequestUseProtocolCachePolicy which caches results and if the same kind of request is made again, adds 'if-none-match' and 'if-modified-since' headers and for example AWS S3 returns an error with if-none-match.

Disable caching altogether since there is no options to control it.

More information here: https://developer.apple.com/documentation/foundation/nsurlrequest/cachepolicy/useprotocolcachepolicy

@Traviskn
Copy link

The only issue I could see are potential performance issues with disabling caching. In my own apps we upload/download exclusively from AWS S3 and have never encountered the issue you describe, would anyone else be able to confirm if this is an issue?

@Traviskn Traviskn added the question Further information is requested label Sep 26, 2019
@sakarit-zz
Copy link
Author

Note that cache is not enabled by default on Android. This makes iOS to work differently compared to Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants