Description
when cache-control is set to false fsCachedData is still storing http responses in iOS. Customer would like the ability to set cache-control to false and have parity between iOS and Android.
Additional information
Currently customer is using the following workaround for iOS to stop fsCachedData from storing HTTP responses
var xhr = Ti.Network.createHTTPClient();
xhr.open('GET', '
http://www.customurl.com');
xhr.setRequestHeader('Cache-Control','no-cache');
xhr.setRequestHeader('Cache-Control','no-store');
xhr.send();
Please let me know what happens if you set
xhr.setCache(false)
. This is how the cache-policy is set on iOS (specifically: In the NSURLRequest instance). If using the property does not help - and I would like you to test that first - I may know of a different approach to use from the SDK-side. Let me know! *EDIT*: And to flush the cache manually, they can use this quick Hyperloop snippet (please test before sending out):Hey [~hknoechel] no such luck. It doesn't do anything for fsCachedData.
[~hknoechel] is there any timeline for this to be implemented?
[~hknoechel] Hey is this still something being worked on?