Skip to content

fix(routing): apply authored headers without overwriting auth cache policy - #669

Open
dvkam wants to merge 2 commits into
voidzero-dev:mainfrom
dvkam:fix/579-static-asset-header-overrides
Open

dvkam wants to merge 2 commits into
voidzero-dev:mainfrom
dvkam:fix/579-static-asset-header-overrides

Conversation

@dvkam

@dvkam dvkam commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #579

Apply routing header rules through Hono's header API so configured values replace existing response headers. Keep authentication in control of private and no-store caching, including sign-in responses reached through rewrites or fallbacks.

Preserve last-match precedence and document that header rules also apply to matching error responses.

Validation:

  • Reproduced the CSS and JavaScript failure in build and preview, then verified the fix.
  • 188 focused routing, auth, compiler and real asset-binding tests pass.
  • Workspace type checks pass, 33 tasks. Scoped formatting and lint pass.
  • Full suite: 15,372 passed and 20 failed. Eighteen failures also reproduce on the base revision. The other two pass in isolation.

@dvkam
dvkam marked this pull request as ready for review November 2, 2026 10:55

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

routing.headers cannot set Cache-Control on static assets

1 participant