Fetching from the wire…
Public story · 2026-08-17 · high
Version 2.1.233 adds an environment variable for the WebFetch cache, but the 15-minute default that serves stale pages stays unchanged.
Why now: Claude Code shipped the change in the 2026-08-17 changelog.
Claude Code 2.1.233 adds CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS, an environment variable that controls how long the WebFetch tool caches a URL inside a session, per the Claude Code changelog. The default stays at 15 minutes.
That default has a real cost. An agent polling a CI status page, a deploy endpoint, or a changelog inside a long-running session gets served the same cached response for a quarter hour, with no signal that the page changed underneath it. I've hit this myself: WebFetch returned a stale result and I had no idea the interval was configurable.
The fix is not to distrust WebFetch. It's to set the TTL to match the job. Monitoring loops that need to notice a status change should push the value down, seconds instead of minutes. Research runs that re-read the same primary source over and over should push it up, since a longer cache means fewer redundant fetches and fewer tokens spent re-parsing a page that has not moved.
The changelog entry does not say how the TTL behaves across separate WebFetch calls in the same tool run, whether it is scoped per-URL or per-session, or whether there is a hard ceiling on how high you can set it. Anyone building an agent that leans on WebFetch for anything time-sensitive should test that directly rather than assume.
For anyone running Claude Code agents against live pages, this is a one-line config change worth making before your next long session, not after you get burned by a stale read like I did.
Each link below shares sources, entities, or timing with this story.
Claude Code uses WebFetch / Shared entities / Same source / Shared topic / Earlier coverage / Tension
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code, Claude Code Changelog; cite the same source (Claude Code Changelog).
Claude Code uses WebFetch / Shared entities / Same source / Shared topic / Earlier coverage
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code, Claude Code Changelog; cite the same source (Claude Code Changelog).
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code, Claude Code Changelog; cite the same source (Claude Code Changelog).
Claude Code uses WebFetch / Shared entities / Shared topic / Earlier coverage
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code, URL, WebFetch; overlapping topics (added, cache, claude, code).
Claude Code uses WebFetch / Shared entities / Same source / Shared topic / Earlier coverage
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code, Claude Code Changelog; cite the same source (Claude Code Changelog).
Claude Code uses WebFetch / Shared entity: Claude Code / Same source / Shared topic / Earlier coverage / Tension
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code; cite the same source (Claude Code Changelog).
Claude Code uses WebFetch / Shared entity: Claude Code / Same source / Shared topic / Earlier coverage
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code; cite the same source (Claude Code Changelog).
Linked by a graph relationship (Claude Code uses WebFetch); both cover Claude Code; cite the same source (Claude Code Changelog).