On 3/4/26 6:18 AM, Dr Rainer Woitok wrote:

> But what are the consequences of an expired TTL?   The Gentoo mirror I'm
> using is updated  only every six hours.   I just checked  at about 11:00
> and its "Packages" file contained
> 
>    TIMESTAMP: 1772598198
> 
> which corresponds to  2026-03-04  05:23:18 GMT+01.   So how will Portage
> treat this over five hours old "Packages" file with a TTL of one hour?


The server announces a TTL to tell you how frequently you should check
for updates, e.g. the binhost while building packages uploads them once
per hour until it is done building all the packages in its
once-per-calendar-day "emerge -uDN --buildpkg @world" cronjob

When within the TTL, portage won't make network queries. When the TTL is
exceeded, portage makes a network query, and respects the use of http
Last-Modified / If-Modified-Since if the mirror is correctly configured
to do them.

https://last-modified.com/en/last-modified-header


-- 
Eli Schwartz

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to