Hit for Pass after "return(pass)" in vcl_recv

Nigel Peck np.lists at sharphosting.uk
Fri May 12 01:40:05 CEST 2017


Hi,

I'm wondering what happens with requests that were marked return(pass) 
by vcl_recv, when they get to vcl_backend_response. If I do the following:

set beresp.http.Cache-Control = "private, max-age=0, no-cache, no-store";
set beresp.http.Expires = "Mon, 01 Jan 2001 00:00:00 GMT";
set beresp.ttl = 120s;
set beresp.uncacheable = true;
return (deliver);

Is that going to mark them hit-for-pass? Or can they not be cached in 
any way now? (even hit for pass) Is the "uncacheable" redundant because 
they were already marked for pass?

I would appreciate any further info on this.

Thanks
Nigel



More information about the varnish-misc mailing list