Mailing List Archive

r1563 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2007-06-25 16:12:54 +0200 (Mon, 25 Jun 2007)
New Revision: 1563

Modified:
trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Actually get the logic right here, if there is no Vary string, the
object is acceptable to all clients.


Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c 2007-06-25 14:10:34 UTC (rev 1562)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c 2007-06-25 14:12:54 UTC (rev 1563)
@@ -158,7 +158,7 @@
o->ttl = 0;
VSL(SLT_ExpBan, 0, "%u was banned", o->xid);
EXP_TTLchange(o);
- } else if (o->vary != NULL && VRY_Match(sp, o->vary))
+ } else if (o->vary == NULL || VRY_Match(sp, o->vary))
break;
o->refcnt--;
}