[PATCH] Normalizing the Host: header

Nils Goroll slink at schokola.de
Fri Mar 11 20:38:55 CET 2011


Hi phk,

can we come to a conclusion of this discussion?

My two cent:

- where the host header does not undergo site-specific normalization, case
  folding it will once

  - avoid multiplication of cache content for case variations of the host
    header

  - avoid case-insensitive matching (so matches using the existing (case
    sensitive) ~ operator would be correct)

    - lead to many existing, currently wrong, VCL examples become correct

- case-folding once in-place does not use any additional session space
  as case-folding in VCL would

- it's cheaper than any alternative in a vmod/VCL can be

- host header normalization is a recommendation in rfc3986

Nils




More information about the varnish-dev mailing list