r1563 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Jun 25 16:12:54 CEST 2007


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--;
 	}




More information about the varnish-commit mailing list