Hi phk, > But this is exactly the kind of needless text-processing we should avoid
In general: Absolutely, yes. In this case, normalizing once should pay off wherever the host header needs to be checked at least once. > a regexp or a strncasecmp() We don't have stncasecmp() in VCL at this point, so we need to compare performance of pcre_exec() and strcmp(). Besides this, my main motivation for this suggestion was to avoid wrong host header comparisons for all of those who have not spotted the right place in the docs. If this suggestion is not found useful, I think we should at least fix all the wrong examples for host header comparison in the docs. Thanks, Nils -- ** * * UPLEX - Nils Goroll Systemoptimierung Schwanenwik 24 22087 Hamburg tel +49 40 28805731 mob +49 170 2723133 fax +49 40 42949753 http://uplex.de/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ varnish-dev mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
