Skip to content

feat(middleware): strip hop-by-hop headers before caching#808

Open
u5surf wants to merge 1 commit into
darkweak:masterfrom
u5surf:feat/strip-hop-by-hop-headers
Open

feat(middleware): strip hop-by-hop headers before caching#808
u5surf wants to merge 1 commit into
darkweak:masterfrom
u5surf:feat/strip-hop-by-hop-headers

Conversation

@u5surf

@u5surf u5surf commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Connection-specific header fields (RFC 9110 §7.6.1) — Connection, Keep-Alive, Proxy-Authenticate, Proxy-Authorization, TE, Trailer, Transfer-Encoding, Upgrade — plus any field-names listed in the Connection header are removed before a response is stored, so one connection's framing/handshake is never replayed from cache to later clients. This matches Apache mod_cache.

Removing these is a message transformation that does not change the content, so it is permitted even under Cache-Control: no-transform (RFC 9110 §7.7).

Closes #807

Connection-specific header fields (RFC 9110 §7.6.1) — Connection,
Keep-Alive, Proxy-Authenticate, Proxy-Authorization, TE, Trailer,
Transfer-Encoding, Upgrade — plus any field-names listed in the
Connection header are removed before a response is stored, so one
connection's framing/handshake is never replayed from cache to later
clients. This matches Apache mod_cache.

Removing these is a message transformation that does not change the
content, so it is permitted even under Cache-Control: no-transform
(RFC 9110 §7.7).

Closes darkweak#807

Signed-off-by: Y.Horie <u5.horie@gmail.com>
@netlify

netlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploy Preview for teal-sprinkles-4c7f14 canceled.

Name Link
🔨 Latest commit 6b1cd06
🔍 Latest deploy log https://app.netlify.com/projects/teal-sprinkles-4c7f14/deploys/6a2df0a3e01c280008603978

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.

Hop-by-hop headers are cached and replayed to clients

1 participant