squid-deb-proxy refresh
Marty Sweet
msweet.dev at gmail.com
Wed Feb 26 03:24:06 UTC 2014
Hi Jeff,
I found the following:
===
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 20% 10080
refresh_pattern . 0 20% 4320
These patterns apply only to data without an explicit expiry time.
The first two lines apply to ftp and gopher connections. They instruct
squid to keep data for matching URLs for 1440 minutes OR for 20% of the
time since the item was last modified upto a maximum of 10080 minutes.
The third applies to anything/everything else (include http), and says
that no document should be kept longer than 20% of the time since it
was last modified, and in any case no longer that 4320 minutes.
===
Source: http://us.generation-nt.com/answer/squid-refresh-time-help-170955101.html
The deb$ and udeb$ are simply regexs for
http://anything.com/dists/xyz/package.deb
Hope this helps,
Marty
On Wed, Feb 26, 2014 at 1:58 AM, J <dreadpiratejeff at gmail.com> wrote:
> Can someone explain the refresh lines in the squid-deb-proxy config?
>
> for example:
> # refresh pattern for debs and udebs
> refresh_pattern deb$ 129600 100% 129600
> refresh_pattern udeb$ 129600 100% 129600
>
> I know that the first and third number are Minimum and Maximum
> times... but how to they work?
>
> in the example, does that guarantee that debs will NOT be refreshed
> any sooner than 36 hours after they were last refreshed (if called by
> a host using the proxy)?
>
> And I saw a definition of the percentage, but I really don't get how
> the percentage works.
>
> If I have this:
>
> 0 100% 100
>
> does that mean the file will be refreshed any time after it is 100 seconds old?
>
> If I have this:
>
> 0 50% 100
>
> does that mean the file will be refreshed after 50 seconds?
>
> I've been searching and reading for a while now and haven't found
> anything that makes those lines actually make sense or explain just
> what the minimum is for, nor the percentage.
>
> Thanks
> jeff
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
Marty
More information about the ubuntu-users
mailing list