{ "id": "169823", "key": "TIMOB-25315", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-09-18T16:30:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-03T11:06:39.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5. Description\r\nwhen 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. \r\nh5. Additional information \r\nCurrently customer is using the following workaround for iOS to stop fsCachedData from storing HTTP responses\r\n\r\nvar xhr = Ti.Network.createHTTPClient();\r\nxhr.open('GET', 'http://www.customurl.com');\r\nxhr.setRequestHeader('Cache-Control','no-cache');\r\nxhr.setRequestHeader('Cache-Control','no-store');\r\nxhr.send();\r\n", "attachment": [], "flagged": false, "summary": "iOS: Allow cache-control to fsCachedData", "creator": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "428023", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "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!\r\n\r\n*EDIT*: And to flush the cache manually, they can use this quick Hyperloop snippet (please test before sending out):\r\n{code:js}\r\nNSURLCache.sharedURLCache.removeAllCachedResponses();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-18T16:41:59.000+0000", "updated": "2017-09-19T09:21:43.000+0000" }, { "id": "428833", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey [~hknoechel] no such luck. It doesn't do anything for fsCachedData.", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-09T17:11:57.000+0000", "updated": "2017-10-09T17:11:57.000+0000" }, { "id": "429591", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hknoechel] is there any timeline for this to be implemented? ", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-25T20:44:18.000+0000", "updated": "2017-10-25T20:44:18.000+0000" }, { "id": "432860", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hknoechel] Hey is this still something being worked on? ", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-08T18:19:43.000+0000", "updated": "2018-01-08T18:19:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }