Conditional Backend Request with stale objects

Claudio Devecchi cdevecchi at gmail.com
Mon Jun 18 23:37:58 CEST 2012


Hi Hugo,

This problem I resolved today, my problem now is varnishncsa that is not
logging.

The log is coming this way
172.24.2.41 - - [15/Jun/2012:19:13:42 -0300] "-
http://localhost-HTTP/1.0"  0 "-" "-"

and the correct should be
172.22.2.41 - - [13/Jun/2012:16:06:00 -0300] "GET
http://test.com/test1.jpgHTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11;
Ubuntu; Linux i686; rv:12.0)
Gecko/20100101 Firefox/12.0"


Any idea?

On Mon, Jun 18, 2012 at 5:19 PM, Hugo Cisneiros (Eitch) <
hugo.cisneiros at gmail.com> wrote:

> On Thu, Jun 14, 2012 at 3:04 PM, Claudio Devecchi <cdevecchi at gmail.com>
> wrote:
> > I compiled the version following the instructions on
> > https://www.varnish-cache.org/trac/wiki/BackendConditionalRequests, and
> > using varnishlog I already see the headers If-Modified-Since and
> > If-None-Match. But when the obj.ttl expires, varnish gets a 200 from
> backend
> > and I was expecting 304.
>
> Did you use the keep setting on the objects? And also check if you
> have something like "if (obj.ttl <= 0) { return (pass); }" along your
> VCL. Also, compare your varnishlog with the one from the page. If you
> still can't get the 304, post the varnishlog of the request :)
>
> --
> []'s
> Hugo
> www.devin.com.br
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120618/6c771b29/attachment.html>


More information about the varnish-misc mailing list