should beresp will be added into cache?
junxian.yan at gmail.com
Tue Mar 8 09:23:06 CET 2011
Actually, I need to set clientcache in fetch. But seems varnish can not add
this attribute into cache list.
On Mon, Mar 7, 2011 at 11:41 PM, Poul-Henning Kamp <phk at phk.freebsd.dk>wrote:
> In message <AANLkTimcr8HX5aP4nsDDDPDzMqqrE-774tA2Y4svkeJw at mail.gmail.com>,
> ian Yan writes:
> >Here is my code:
> >in vcl_fetch
> > unset beresp.http.Set-Cookie;
> > set beresp.http.Cache-Control = "private, max-age = 3600,
> >must-revalidate"; # 1 hour
> > set beresp.ttl = 10m;
> > set beresp.http.clientcache = "1";
> > return(deliver);
> > }
> >And I also wanna the response of the second request have the max-age =
> >and clientcache = 1. The actual result is max-age = 0 and no clientcache
> Wouldn't it be easier to set the Cache-Control in vcl_deliver then ?
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc