Different Caching Durations For Varnish and Client

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Jul 17 10:43:25 CEST 2008


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 ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list