Cloudflare

Introducing the Workers Cache API: Giving you control over how your content is cached

Jan 25, 2019Jon Levine
Introducing the Workers Cache API: Giving you control over how your content is cached
SummaryAI, from the source post

Introduced the Workers Cache API, based on the Service Workers Cache API, providing `put()`, `match()`, and `delete()` methods for programmatic control over Cloudflare's global caches. This allows developers to modify requests and responses before caching, implement custom caching logic (e.g., TTL, cache tags, Vary logic), cache POST requests by transforming them into GET requests with a cache key derived from the body hash, and use the API as an ephemeral key-value store.

More from the Cache Management trail