Most server requests are read-only and idempotent, which means that a request can be repeated or retried as often as necessary without causing data changes. The responses to idempotent actions can be cached and quickly reused for subsequent identical actions. For storable actions, the key for determining an identical action is a combination of:
To mark a server-side action as storable, call setStorable() on the action in JavaScript code, as follows.
action.setStorable();
The setStorable function takes an optional argument, which is a configuration map of key-value pairs representing the storage options and values to set. You can only set the following property:
To set the storage options for the action response, pass this configuration map into setStorable(configObj).