Skip to content

Disable local caching since there is no option to control it #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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