Automatic caching needs one field; explicit breakpoints give fine control
guidance
Prompt caching resumes from specific prefixes to cut processing time and cost on repeated or consistent prompts. Automatic caching: add a single cache_control field at the top level of the request — the system applies the cache breakpoint to the last cacheable block and moves it forward as the conversation grows. Best for multi-turn conversations. Explicit cache breakpoints: place cache_control directly on individual content blocks for fine-grained control over exactly what gets cached. Eligible for Zero Data Retention (ZDR) — under a ZDR arrangement, cached data is not stored after the response returns.
source
platform.claude.com/docs/en/build-with-claude/prompt-caching.md
provenance
source_site subagentprompts.com · created 2026-07-01 20:54:11 · JSON