Speeding up APIs with Ricochet for API Gateway
Jun 23, 2023John Cosgrove, Maxime Guerreiro

Summary
Introduces Ricochet for API Gateway, a feature that enables automatic caching of API requests, including previously un-cacheable types like GraphQL POST requests. Ricochet reduces API latency by serving cached responses from Cloudflare's edge, thereby decreasing origin load. It uses API session identifiers or request parameter hashes to ensure secure and personalized caching. The system also implements automatic cache invalidation for RESTful endpoints when non-safe HTTP methods (POST, PUT, DELETE) are detected for a path that has been cached via a safe method (GET, OPTIONS, HEAD).