Header names case sensitivity

Dridi Boukelmoune dridi at varni.sh
Thu Dec 15 16:25:40 UTC 2022


On Wed, Dec 14, 2022 at 10:05 AM Jérémy Lecour <jeremy.lecour at gmail.com> wrote:
>
> On Wed, Dec 14, 2022 at 10:56 AM Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> > not everybody reads RFCs recreationally...
>
> What ?? I'm shocked ! :D
>
> I spent 2 hours last night reading parts of the RFC9110 about HTTP and I've learnt a lot about HTTP headers.
>
> For example, the "X-" prefix for non-standard headers has been deprecated since 2012.
> It was a good idea in theory but proven to be counter productive, based on the long running experimentation in email and SIP (and HTTP).
>
> For Varnish I guess we're stuck with the X- prefix since it became a de-facto standard.

We can always rename X-Varnish to something else but we'd need a good
reason to break existing setups.

On the other hand you have the ability to rename the header in VCL and
have access to the req.xid and bereq.xid variables to build your own
transaction tracking header.

Cheers


More information about the varnish-misc mailing list