Cloudflare caching for Content Delivery API is suboptimal

Created

Mar 27, 2023

Updated

Mar 20, 2024

State

Backlog


Description

Improved the Cloudflare caching for Content Delivery API:

  1. Set Browser Cache TTL to a much smaller value, letting clients get updated responses faster without requiring you to rewrite their code to specify a lower max-age value. 
  2. Set Browser Cache TTL -> Respect Existing Headers as the global default.
  3. Specifically set the above defaults for the following Content Delivery API endpoints:
/api/episerver/*/search/content*
/api/episerver/*/content*