Cache HTTP error responses

You can cache error responses sent from your origin to reduce the number of calls to origin when content is not available.

How to

  1. On the Caching settings page, in the Cache HTTP error responses section, set the Enable switch to Yes.
    A group of configuration parameters appears.
  2. In the Max age field, enter the maximum time for caching HTTP error responses.
    Note: You can specify this parameter in seconds, minutes, hours, or days. In each case, the value must be between 1 and 1000000.
  3. To preserve expired objects when revalidation with the origin server is not possible, set the Preserve stale objects switch to Yes.

Next steps

Configure downstream caching