Configure downstream caching
Downstream caching refers to the caching instructions that calling API clients (for example, browsers) should follow.
How to
- In the Downstream cacheability section, from the Caching option menu, select the type of downstream caching that you want to implement.
-
Do one of these steps:
If... Then... If you selected Allow caching, then do these steps: - From the
Cache lifetime menu, select the option for the
maximum lifetime of cached objects.
This determines the value of the
Expires
header. - If you selected
Fixed value in the previous step, in the
Max age field, enter the maximum time for
caching content.Note: You can specify this parameter in seconds, minutes, hours, or days. In each case, the value must be between 1 and 1000000.
- From the Send headers menu, select the type of headers that you want to send downstream in the response to the client.
- Optional: To disallow storing of HTTP responses in a
shared cache, set the Mark as
private switch to Yes.
This adds the
Private
directive to theCache-Control
header.
If you selected Allow caching, require revalidation, then optionally, to disallow storing of HTTP responses in a shared cache, set the Mark as private switch to Yes. This adds the
Private
directive to theCache-Control
header.If you selected any other option, then move on to Configure cache key query parameters. - From the
Cache lifetime menu, select the option for the
maximum lifetime of cached objects.