vcl and cache-control header

Dag-Erling Smørgrav des at linpro.no
Mon Apr 30 17:45:20 CEST 2007


Denis Ahrens <denis at zeno.org> writes:
> Poul-Henning Kamp <phk at phk.freebsd.dk> writes:
> > Denis Ahrens <denis at zeno.org> writes:
> > > I have problems with the following vcl-script:
> > >
> > > 	if(req.http.Cache-Control == "max-age=0") {
> > > 		set obj.ttl = 0s;
> > > 		pass;
> > > 	}
> > Guys, when you quote VCL code, please also tell us which
> > function you do this in...
> sorry, this is in vcl_hit()

OK, I'm not sure we've ever tested going from hit to pass, although
it's meant to work.  Could you please open a ticket about this?  Call
it "returning pass from vcl_hit crashes the child" or something.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-dev mailing list