Skip to content

docs: clarify how webcache composes with Anthropic prompt caching - #7

Open
theYahia wants to merge 1 commit into
mainfrom
docs-anthropic-cache-comparison
Open

docs: clarify how webcache composes with Anthropic prompt caching#7
theYahia wants to merge 1 commit into
mainfrom
docs-anthropic-cache-comparison

Conversation

@theYahia

@theYahia theYahia commented May 1, 2026

Copy link
Copy Markdown
Owner

Single-section README addition answering the natural question of whether claude-webcache duplicates Anthropic's server-side prompt cache. It does not — different layers, they stack:

  • Anthropic prompt cache: input prompt-prefix tokens, ephemeral 5min/1hour TTL, server-side
  • claude-webcache: WebFetch output text, unlimited TTL, local SQLite, cross-session

Also clarifies that Claude Code subscription users still benefit (saves wall-clock time and message-turn budget even though per-token billing savings are flat-rate-invisible).

🤖 Generated with Claude Code

Adds a 'How this differs from Anthropic prompt caching' section answering
the natural question of whether webcache duplicates server-side caching.
They cache different layers: Anthropic = prompt-prefix tokens, ephemeral;
webcache = WebFetch outputs, local SQLite, persistent. The two stack.

Also notes that Claude Code subscription users still benefit from webcache
even though Anthropic-side billing savings are invisible to flat-rate plans.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant