Via

Geoff Simmons geoff at uplex.de
Thu Mar 20 08:37:47 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

At the risk of bikeshedding via Via ...

On 3/19/14 10:06 PM, Poul-Henning Kamp wrote:
> 
> We append a Via header, if there is one already, that will come 
> first, and I belive Via is one of those headers where you should 
> process all to get the valid result.
> 
> Obviously, we can append to an existing Via header if we want that
> instead, but that would make it harder to remove just the Varnish
> Via again in VCL.

I haven't found a way to read the RFC in such a way that a Via header
should be added -- all of my attempted parsings say that a hop should
appended to an existing header. Unless of course I've missed it, or
unless they use the word "append" in an ambiguous way that encompasses
both meanings (which unfortunately I wouldn't rule out with this RFC).

That said, separate headers are indeed much easier to work with in
VCL, especially now that we have the header VMOD, which could
specifically target the Varnish Via (to remove it or change "varnish"
into a host name), or collect all the Vias into a single header, all
quite trivially.

Since this is getting into bike shed territory, I'd say it's easiest
to go with the separate header, with the option of changing it in VCL.


Best,
Geoff
- -- 
UPLEX Systemoptimierung
Scheffelstraße 32
22301 Hamburg
http://uplex.de/
Mob: +49-176-63690917
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTKprKAAoJEOUwvh9pJNURkkYP/iElGxIOBO8Zd4nP0fljPXcy
jZU4eVJY5CGK5lsi1UYjpoPxIcIm9dWV9KRhJsw038Ec7ApDtUfh0Wma+zAqB6vx
68WH+jwJDo61EmwfLMXdjzjbMu5QkhzHP2I1zZqpF3IbFv/j5P5kICNpqb7oRq/v
PZwWaNl61MkAm8i8UXfxzgjQn+6M9iA/oDnCyFySvsHb/ddkH19VOcuR+njp/Bxt
3Uo3QDKJtEY0UaJLZ1twespM3uHmr4bK6ShU4OxRuiNujxeIGcJ4apBQXaLzwkzT
vKOWJzERybjQvZ94zyCcR0ED1JSFRaPur6C+Nfrkjs8aDQRy/RVbskoBLSZ0lUpz
18p7QwWe3UobNw08iUHMe9G9CjVbGzsPwHFeYUE6r/gALSoOdjweNZdtyvvEnSmW
+wKBQVcVjKhTal4ZuLWEu072nCBFXMirMoO6pVmQ8HqX/uFoNKlJh1BXGG8ZrPt0
m6vSssO5o5wWN2MCQEq2YaPsYGMhze4WvMDHNgXerC5I/QmtoluuDLvrxTMy3mZ1
RH57bIImahV/bX7kHIG/Wxk48EQgcYQJbOl9DLWSN4SsNGs44Ajen/17zGdoObwP
aNmMqsZ7+r3cVsx/ivPkGgR+zxElfoh7D2gbmsO7IHEDi+PJomWiv6WJQlPQZ3Ao
nzbMjxVxrB56ysUnnYv8
=F4SX
-----END PGP SIGNATURE-----



More information about the varnish-dev mailing list