diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-05-11 15:01:00 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-05-16 23:28:11 +0200 |
commit | 938ffcbb0589adc07dc12c79eda3e1e2bb9e7cf8 (patch) | |
tree | 9e997f834176b4e438aa1a007d44532af59b1388 /doc/guix.texi | |
parent | dc3504913de4a2c549482001f7087362f5400f29 (diff) | |
download | guix-938ffcbb0589adc07dc12c79eda3e1e2bb9e7cf8.tar.gz |
publish: Add '--negative-ttl'.
* guix/scripts/publish.scm (show-help, %options): Add '--negative-ttl'. (render-narinfo, render-narinfo/cached, make-request-handler): Add #:negative-ttl and honor it. (run-publish-server): Add #:narinfo-negative-ttl and honor it. (guix-publish): Honor '--negative-ttl'. * tests/publish.scm ("negative TTL", "no negative TTL"): New tests.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index bfc714c5b6..a10943f2d5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -12703,6 +12703,16 @@ Additionally, when @option{--cache} is used, cached entries that have not been accessed for @var{ttl} and that no longer have a corresponding item in the store, may be deleted. +@item --negative-ttl=@var{ttl} +Similarly produce @code{Cache-Control} HTTP headers to advertise the +time-to-live (TTL) of @emph{negative} lookups---missing store items, for +which the HTTP 404 code is returned. By default, no negative TTL is +advertised. + +This parameter can help adjust server load and substitute latency by +instructing cooperating clients to be more or less patient when a store +item is missing. + @item --cache-bypass-threshold=@var{size} When used in conjunction with @option{--cache}, store items smaller than @var{size} are immediately available, even when they are not yet in |