]> err.no Git - varnish/commitdiff
Correct inverted test in If-Modified-Since logic. This should fix the
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 15 Aug 2006 10:38:20 +0000 (10:38 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 15 Aug 2006 10:38:20 +0000 (10:38 +0000)
"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

index 6143ce0937c02f887e2ca0598a73b818531d65b7..815838307587a8ee5197683bfb906408b87cb957 100644 (file)
@@ -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);