{"name":"CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS","slug":"claude-code-webfetch-cache-ttl-ms","family":"env","title":"Environment variables","noun":"environment variable","description":"You can set how long WebFetch keeps pages cached, in milliseconds.","description_source":"entry","described_by":{"version":"2.1.233","anchor":"webfetch-cache-lifetime-is-now-configurable"},"presence":{"first_seen":"2.1.233","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":65,"mined_builds":149,"first_cited":{"version":"2.1.233","released_at":"2026-08-14 18:50:44","spans":1}},"aliases":[],"entries":[{"version":"2.1.233","anchor":"webfetch-cache-lifetime-is-now-configurable","heading":"WebFetch cache lifetime is now configurable","line":"You can set how long WebFetch keeps pages cached, in milliseconds.","released_at":"2026-08-14 18:50:44","reason":"named in this entry, found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"tools-reference","title":"Tools reference","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"CLAUDE_CODE_WEBFETCH_DEADLINE_MS","slug":"claude-code-webfetch-deadline-ms","description":"WebFetch requests now enforce a timeout and fail with a clear deadline error if exceeded"},{"name":"CLAUDE_CODE_WEBFETCH_PROXY_PATH","slug":"claude-code-webfetch-proxy-path","description":"A path for routing WebFetch through a proxy endpoint. When the API provider is first-party and the value starts with `\/` and contains no `:\/\/`, WebFetch skips its direct fetch and domain preflight and POSTs `{url}` (with `http:\/\/` rewritten to `https:\/\/`) to `ANTHROPIC_BASE_URL` (default `https:\/\/api.anthropic.com`) plus this path, with a 40 second timeout; a failed proxy call fails the fetch with the `web-fetch-ccr-proxy` error. Any other value is ignored."},{"name":"CLAUDE_CODE_WEBFETCH_USE_CCR_PROXY","slug":"claude-code-webfetch-use-ccr-proxy","description":"Routing WebFetch through the CCR proxy now depends on `CLAUDE_CODE_WEBFETCH_USE_CCR_PROXY` instead of being worked out from session state"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-webfetch-cache-ttl-ms","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}