MM related changes

Adrian Reber adrian at lisas.de
Fri Jun 12 11:59:27 UTC 2015


On Fri, Jun 12, 2015 at 11:13:28AM +0200, Pierre-Yves Chibon wrote:
> >  ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
> >  ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
> > 
> > commit 8e09f5a37620c52265aa83305c99173f9e982d76
> > Author: Adrian Reber <adrian at lisas.de>
> > Date:   Fri Jun 12 08:13:17 2015 +0000
> > 
> >     Increase cache time for mirrorlist
> >     
> >     The mirrorlist which can be viewed in the browser used to be generated
> >     once or twice per day with MM1. This is listed is now cached in varnish
> >     but only for two minutes. This patch increases the cache time to 6 hours.
> > 
> > diff --git a/roles/varnish/files/proxy.vcl b/roles/varnish/files/proxy.vcl
> > index 0fd5aa6..6d2f340 100644
> > --- a/roles/varnish/files/proxy.vcl
> > +++ b/roles/varnish/files/proxy.vcl
> > @@ -303,5 +303,6 @@ sub vcl_recv {
> >  sub vcl_backend_response {
> >      if (bereq.url ~ "^/mirrormanager/mirrors") {
> >          unset beresp.http.set-cookie;
> > +        set beresp.ttl = 6h;
> >      }
> >  }
> 
> 
> Seems ok, I was kind of expecting that there would already be a value here,
> but I do not know enoug of varnish to make a full +1, so I'll +0.5 there :)

Looking at the documentation it says, that the default is 120 seconds or
whatever the backend specifies via Expires/Cache-Control. At least
that's what I understood.

		Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20150612/4486aa70/attachment.sig>


More information about the infrastructure mailing list