If-Modified-Since

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Aug 15 14:22:17 CEST 2006


In message <ujrr6zi2sr2.fsf at cat.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= writes:

>This looks fishy:
>
>                if (ims > sp->obj->last_modified) {
>                        VSL(SLT_Debug, sp->fd,
>                            "Cond: %d > %d ", sp->obj->last_modified, ims);
>                        return (0);
>                }
>
>Note how the if test and the debug message disagree.

DUH!

Yes, that test is the wrong way around.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-dev mailing list