We have observed that an adapter request's response is getting cached within the app in a cache.db
file.
Is there a way to avoid this? is there any configuration in worklight property file?
We have observed that an adapter request's response is getting cached within the app in a cache.db
file.
Is there a way to avoid this? is there any configuration in worklight property file?
There is the following IBM Worklight technote: http://www-01.ibm.com/support/docview.wss?uid=swg1PM95421
Sensitive data, such as usernames and passwords that are part of URLs, is being stored in the iOS cache.db file in plain text.
This issue can be worked around by using calls to WL.Client.addGlobalHeader('Cache-Control', 'no-store, no-cache'); at the appropriate places in the app code. A call to removeGlobalHeader() can be used to reverse the Cache-Control setting.
So:
In addition: there is a way to clear or manipulate this file via native code.
In the context of a Worklight application under the above assumption, you will need to create a Cordova plug-in that will do operations on this file.
See the following: