github cloudflare/workers-sdk @cloudflare/workers-shared@0.20.4

Patch Changes

  • #17242 77a77a1 Thanks @petebacondarwin! - Apply the headers of every _headers block for a repeated Workers Static Assets path

    Workers Static Assets local development now merges repeated path blocks like production: repeated header names are combined in file order, and ! unsets are applied before all assignments for that path, even when the unset appears in a later block. Pages still uses only the last valid block for a repeated path, matching hosted Pages.

    For Workers Static Assets, when multiple distinct paths match a request, local development now applies those rules in sorted path-key order rather than file order, matching the production deploy pipeline. This also applies to the experimental _headers support in Vite dev, so it agrees with Vite preview. Pages retains its existing ordering for distinct paths.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.