{
  "slug": "wrangler-configuration-enables-the-workers-http-cache-cae14dbfc27f",
  "title": "Wrangler configuration enables the Workers HTTP cache",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-07T14:37:51.000Z",
  "announced_at": "2026-05-07T14:37:51.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When enabling the Workers HTTP cache, set `cache.enabled` to `true` in Wrangler configuration. For preview deployments, set `previews.cache` to override the top-level cache setting; omit it to inherit that setting.",
    "examples": [
      "{\"cache\":{\"enabled\":true}}",
      "[cache]\nenabled = true",
      "[previews.cache]\nenabled = true"
    ],
    "gotchas": [
      "Version: 4.89.0",
      "cache.enabled (required): Boolean that turns caching on or off.",
      "previews.cache: Preview cache setting; overrides top-level `cache`, or inherits it when absent.",
      "Prerequisite: Wrangler 4.69.0 or above.",
      "The cache is an HTTP cache in front of the Worker's `fetch` handler.",
      "`previews.cache` overrides the top-level `cache` setting for preview deployments and falls back to the top-level value when absent.",
      "Docs conflict: The current configuration docs, updated October 3, 2026, say caching applies to every `fetch()` invocation. The v4.89.0 release note describes it as a cache in front of the Worker’s `fetch` handler; current docs postdate that release."
    ]
  },
  "why_it_matters": "Enable an HTTP cache in front of a Worker’s `fetch` handler for a deployment or preview.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.89.0",
    "https://developers.cloudflare.com/workers/cache/configuration/",
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler@4.89.0"
  ],
  "rank": 0.96055,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-41ed95326a3c8e55-0:gate",
    "evidence_hash": "f22854329d41ded00bd8279c3146f1240582851a2f8696c33031b81fc00a1a02"
  },
  "review": {
    "draft_hash": "02e6364d9d4ba18fd8198bb695bcac5cceaa44e78c8d8186689392c87678819f",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
