Does Varnish uses ETag?

Geoff Simmons geoff at uplex.de
Fri Jul 8 12:23:54 CEST 2011


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

On 7/7/11 11:14 PM, Kurt Kraut wrote:
> 
> Does Varnish used ETag to check cache freshness?

Mainline Varnish doesn't, but there's an experimental branch
'experimental-ims' on the source repository in which it's implemented.

> - If yes, how does it behave?

http://www.varnish-cache.org/trac/wiki/BackendConditionalRequests

As per the RFC, freshness checks against ETags are done with conditional
requests to the backend using If-None-Match.

> - If not, is it possible to achive through VCL?

I don't think so, because standard VCL doesn't have a way to access an
object in the cache that has an expired TTL, but otherwise matches the
request, and hence could be refreshed.

So you don't ordinarily know an ETag in VCL that could be used for the
refresh, and even if you did, and got a 304 response from the backend,
there's no way to tell Varnish to deliver the stale object after all.

If you get a chance to try the IMS branch, please let us know how it goes.


Best,
Geoff
- -- 
UPLEX Systemoptimierung
Schwanenwik 24
22087 Hamburg
http://uplex.de/
Mob: +49-176-63690917
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJOFtq5AAoJEOUwvh9pJNURIy4QAKPiZ05kblNGfw7RFJo5Z9fg
81feHHYKRy880yJrG9up8wNx02+9uku6gNlYkpkPcQqfP/fZu5PpUtjGK7pmCSWG
Jv0bBEL+j5V2L0SaQtoxyyvBkQ5bjQcmrZnuxpYRKRdZeNpjIWY1BLHjMkC3z+sS
4KKPi1aiGTKYQH8O1FZHz+6dfP8OQseUCs7tLwYM2BYF2onh5H81ys/Adp6520lv
WV2cJWKJO85MqH5C0qmyzGV3ovTFPaU3J4/4idzPxW/vbUDozr5/XjloG7IYzCi6
Hj5YrfoJlqBREqdAdZ46G/cxS4dKmvMWIO8XaJIYMBISDaXQysXfLq9vLiqODD5l
/1/ijFfEWihwdoxJ/xi1ZgxhA8RYuxQQCMtStVch+QiHpp8ROw04GutXFmA67JeM
aWIBt9WL/cXc/YSP2geSobY89/ROulnKcqV9n5xvxGe1L2bkwq1jQJTtINF6l1oC
lBb9tZAA2JGEeJi8Fv9lcjcrMiLSPzoW16rbzpQNjxxu129Rq8ntteFkm5cqM4sD
2do8CvRO3YauIY6bUGhRVSjNHCvYf6HvvoZEoKvgJy5drziKyU3qx3WEq3TF+QQU
q+Em6WhiYHQufj6OGnZCFJJ4SKDNUNzBkwzuoXay6jxvUtv3m1tGJyKMK0rYN7vv
24e8axxNjKucDr5uFx1L
=PW5G
-----END PGP SIGNATURE-----




More information about the varnish-misc mailing list