In message <[email protected]>, Nils Goroll writes:

>we were discussion this on VUG3: comparisons on the Host: header should be case
>insensitive. Reflecting on this, I think that normalizing the Host: header in
>Varnish would actually be the better idea and should avoid common errors.

What a great idea for a VMOD :-)

But this is exactly the kind of needless text-processing we should avoid
if we want to be the fastest cache on the planet:  a regexp or a strncasecmp()
is not measurably slower than their case-sensitive parallels and if you
don't need to inspect the host-header at all, case-folding it is pure
wasted effort.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to