github cloudflare/workers-sdk @cloudflare/workers-utils@0.25.0

latest releases: @cloudflare/cli-shared-helpers@0.1.11, @cloudflare/pages-shared@0.13.152, @cloudflare/vitest-pool-workers@0.18.0...
2 hours ago

Minor Changes

  • #14474 aa5d580 Thanks @WillTaylorDev! - Add cache options for WorkerEntrypoint exports

    You can now set cache options on WorkerEntrypoint exports and configure cross-version cache behavior globally:

    // wrangler.json
    {
      "cache": { "enabled": true, "cross_version_cache": true },
      "exports": {
        "default": {
          "type": "worker",
          "cache": { "enabled": false }
        },
        "Admin": {
          "type": "worker",
          "cache": { "enabled": true }
        }
      }
    }

    Wrangler sends the exports config to the deploy and version upload APIs alongside the global cache.enabled and cache.cross_version_cache settings. The platform resolves those global settings plus cache overrides on exports and validates which entrypoint names are cacheable.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.