Conditional Backend Request with stale objects
Hugo Cisneiros (Eitch)
hugo.cisneiros at gmail.com
Mon Jun 18 22:19:13 CEST 2012
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
More information about the varnish-misc
mailing list