[TIMOB-26501] Android: Add "cache" property support to HTTPClient
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | HTTPClient, android, cache, parity |
| Reporter | Joshua Quick |
| Assignee | Joshua Quick |
| Created | 2018-10-31T01:00:55.000+0000 |
| Updated | 2018-11-09T00:19:48.000+0000 |
Description
*Summary:*
On iOS,
HTTPClient supports boolean "cache" property, which can be set false to force HTTPClient to ignore the cache and always send the HTTP request.
https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.HTTPClient-property-cache
Android does not currently support this property and always uses the cache. We should add support for this property so the cache can be ignored on Android too.
*Note:*
We need to evaluate if a POST request should be cached at all. I think no, but we should double check how it works on iOS when setting this property true.
No comments