[master] 468a047 Expose is_hit to VCL as resp.is_hit
Geoff Simmons
geoff at uplex.de
Wed Jan 7 11:43:36 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
> commit 468a0472fa313dbff69269afc085957642011abc Author: Nils Goroll
> <nils.goroll at uplex.de <mailto:nils.goroll at uplex.de>> Date: Tue
> Jan 6 22:24:21 2015 +0100
>
> Expose is_hit to VCL as resp.is_hit
A very common idiom in just about every Varnish deployment anywhere is:
sub vcl_hit {
set req.http.X-Cache = "HIT";
}
sub vcl_deliver {
# ...
if (req.http.X-Cache == "HIT") {
# ... mumble ...
}
# ...
}
What would we gain from resp.is_hit that couldn't be solved that way?
Best,
Geoff
- --
** * * UPLEX - Nils Goroll Systemoptimierung
Scheffelstraße 32
22301 Hamburg
Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753
http://uplex.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCAAGBQJUrQ3NAAoJEOUwvh9pJNURiyAQAJ9VxasCUxPWMrMFY1pcBRfP
do1nuwVXb2YTr8Mxi5SKZnoiDL5/mn5/ZcQKlcw71imCc7OGX193SRHsSBbm4mSc
QTtgydWVVUN1h5HkqsRnFBWGpbPijY9BEUYLCgxbI6pH+V6DVy73UAPNxzJ7irWb
ahwN/Vs/h68C9qJMkepBJuJgPNBoKXRunPNIqv8lD+EYxxtKaUfAXAZ4B2hZ6TIg
ZUK6j3+TgbRsftHDI5nKqSiwIjPEmU+SEBE5hYS/QgUXIhZbrsBa5rQnWvLoLLeZ
pAsJN9zCNDi+EWTDSJhJ9hAgDn6KyDMZsUgz6pZx61yELEEm0h8EW+i/uN6LBm34
g2N6j2qVu6Wlggtcp1ZEnaxAENOkU6h/lebayBRvMkIKbus8A4YlKqfkB0j4RoJ+
2TrBrig5hz2D/UrRwi0UsPihadYhcpRrpw0BiBQFCtVRw+f2w+OJpeqTPa/rrLRG
01VwMhIEKrKpDFchDZaVcppLutcA+CHBLf2h/M0H4eY47vJ8qXkB6u6K1rSNeSWO
zUYlVmiFBfHOjTtzmNoYkXtmuk7m+69MokkV+cPefIVJ2joQO3MoTotYHlgIMl+9
g1wWqbc3+B8oC07Z/GbEmt6wxMcbFf5EhSyHAw564cQ9mnn5y/6ZT7EoF2PIbfid
FO9PESltP9NVdIiLCk28
=Xb7r
-----END PGP SIGNATURE-----
More information about the varnish-dev
mailing list