a month ago
- Workers Cache is a tiered cache placed in front of Workers, configured via a simple Wrangler config and Cache-Control headers.
- It enables cache hits to return cached responses without running the Worker, saving CPU time, and populates the cache on misses.
- Configuration is minimal: a single config block in wrangler.jsonc with caching enabled, controlled by Cache-Control headers on responses.
- Features include stale-while-revalidate for background refreshes, Vary header support for content negotiation, and per-entrypoint caching control.