ADC

Caching HTTP callout responses

For improved performance while using callouts, you can use the integrated caching feature to cache callout responses. The responses are stored in an integrated caching content group named calloutContentGroup for a specified time duration.

Note: To cache callout responses, make sure that the integrated caching feature is enabled.

To set the cache duration by using the command line interface

At the command prompt, type:

set policy httpCallout -cacheForSecs

Example:

> set httpcallout httpcallout1 -cacheForSecs 120 

To set the cache duration by using the configuration utility

  1. Navigate toAppExpert > **HTTP Callouts.
  2. In the details pane, select the HTTP callout for which you want to set the cache duration and clickOpen.
  3. In theConfigure HTTP Calloutdialog box, specify theCache Expiration Time.
  4. Verify that you have entered the correct time duration, and then clickOK.
Caching HTTP callout responses