Skip to content

@cloudflare/workers-shared@0.20.4

Choose a tag to compare

@workers-devprod workers-devprod released this 03 Dec 20:05
Immutable release. Only release title and notes can be modified.
c7e9f25

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.