What
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS sets how long fetched pages stay cached, in milliseconds. Without it the built-in default applies. The value is read once on first use and also drives the cache duration shown in WebFetch output.
Details
- Validated as a digits-only integer with a minimum of 1.
Usage
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS=900000 claudeEvidence
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleCLAUDE_CODE_WEBFETCH_CACHE_TTL_MS
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's release notes agree
Added CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS environment variable to configure the WebFetch session URL cache TTL (default unchanged: 15 minutes)
The name it cites is new in this build
New in this build: CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS