Re: MM related changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
> > 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

Attachment: pgpCYOi03MURS.pgp
Description: PGP signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux