Mailing List Archive

r826 - trunk/varnish-cache/bin/varnishd
Author: des
Date: 2006-08-15 12:38:20 +0200 (Tue, 15 Aug 2006)
New Revision: 826

Modified:
trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Correct inverted test in If-Modified-Since logic. This should fix the
"stale front page" problem that has plagued VG.

Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c 2006-08-15 10:36:43 UTC (rev 825)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c 2006-08-15 10:38:20 UTC (rev 826)
@@ -108,7 +108,7 @@
ims = TIM_parse(p);
if (ims > sp->t_req.tv_sec) /* [RFC2616 14.25] */
return (0);
- if (ims > sp->obj->last_modified) {
+ if (sp->obj->last_modified > ims) {
VSL(SLT_Debug, sp->fd,
"Cond: %d > %d ", sp->obj->last_modified, ims);
return (0);