From 55a897443764599b0be0ed83533ba74068ba0c09 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 15 Aug 2006 10:38:20 +0000 Subject: [PATCH] Correct inverted test in If-Modified-Since logic. This should fix the "stale front page" problem that has plagued VG. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@826 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_response.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index 6143ce09..81583830 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -108,7 +108,7 @@ res_do_conds(struct sess *sp) 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); -- 2.39.5