{"version":"2.1.233","anchor":"webfetch-cache-lifetime-is-now-configurable","canonical_anchor":"webfetch-cache-lifetime-is-now-configurable","heading":"WebFetch cache lifetime is now configurable","tier":"use","area":"WebFetch","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233\/e\/webfetch-cache-lifetime-is-now-configurable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233","markdown":"### WebFetch cache lifetime is now configurable\n\nYou can set how long WebFetch keeps pages cached, in milliseconds.\n\n**What**\n\n`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.\n\n**Details**\n\n- Validated as a digits-only integer with a minimum of 1.\n\n**Usage**\n\n`CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS=900000 claude` **Evidence** `CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS`\n\n- Area: WebFetch\n- Names: `CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5"}