Different Caching Durations For Varnish and Client

Wichert Akkerman wichert at wiggy.net
Thu Jul 17 10:54:36 CEST 2008


Previously Poul-Henning Kamp wrote:
> In message <487C6485.2090109 at vg.no>, Audun Ytterdal writes:
> >Demitrious Kelly wrote:
> 
> >> So in the response to varnish I have set the Expires to be 1 month from
> >> the request, and in the vcl I'm doing the following:
> >>
> >> sub vcl_deliver {
> >>     remove resp.http.Expires;
> >>     remove resp.http.Cache-Control;
> >>     remove resp.http.Age;
> >>     set resp.http.Cache-Control = "max-age=600, proxy-revalidate";
> >>     set resp.http.Age = "0";
> >>     deliver;
> >> }
> >>
> 
> 
> >I would also like som sort of "max-age, only for varnish"-header.
> 
> Write up a proposal how it should work and lets look at it ?

Instead of 'only for varnish' a 'only for first proxy in path' would be
more generic and more explicit about the intention.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.



More information about the varnish-misc mailing list