[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-bugs
Subject: [Varnish] #425: Object pass'ed in vcl_fetch with TTL=0s can
From: varnish-bugs () projects ! linpro ! no (Varnish)
Date: 2009-01-21 23:00:44
Message-ID: 058.c2ac96f05510204ba944008b0bf0056d () projects ! linpro ! no
[Download RAW message or body]
#425: Object pass'ed in vcl_fetch with TTL=0s can serialize that object
----------------------+-----------------------------------------------------
Reporter: phk | Owner: phk
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution: fixed
Keywords: |
----------------------+-----------------------------------------------------
Changes (by phk):
* status: new => closed
* resolution: => fixed
Comment:
(In [3537]) Enforce a minimum ttl for "hit for pass" objects to prevent a
value
of zero from serializing access to an object with very draconian
backend cache-control headers.
We could get far even with a one second TTL, but following our general
"there is a reason people put Varnish there in the first place" logic
we use the default_ttl parameter (default: 120 s) for this value.
If another value is desired, this can be set in vcl_fetch, even if it
looks somewhat counter-intuitive:
sub vcl_fetch {
if (obj.http.set-cookie) {
set obj.ttl = 10s;
pass;
}
}
Fixes #425
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/425#comment:1>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic