Commit 366bb3d1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only make object uncacheable if both obj.ttl and obj.grace is zero.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3963 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9cb123f3
......@@ -494,7 +494,7 @@ cnt_fetch(struct sess *sp)
sp->obj->cacheable = sp->wrk->cacheable;
sp->obj->ttl = sp->wrk->ttl;
sp->obj->grace = sp->wrk->grace;
if (sp->obj->ttl == 0.)
if (sp->obj->ttl == 0. && sp->obj->grace == 0.)
sp->obj->cacheable = 0;
sp->obj->age = sp->wrk->age;
sp->obj->entered = sp->wrk->entered;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment