guix-devel/guix/scripts
Ludovic Courtès 9b9de08477
publish: Add a 'Cache-Control' header on /nar responses.
Fixes <https://bugs.gnu.org/33721>.
Reported by Chris Marusich <cmmarusich@gmail.com>.

* guix/scripts/publish.scm (render-nar/cached): Add #:ttl and honor it.
(make-request-handler): Pass #:ttl to 'render-nar/cached'.
* tests/publish.scm ("with cache, uncompressed"): Pass "--ttl=42h" to
'guix publish'.  Check 'Cache-Control' on narinfo response and on nar
response.
2018-12-17 23:33:42 +01:00
..
container
import import cran: Document "recursive" option. 2018-10-17 13:06:25 +02:00
system
archive.scm
authenticate.scm
build.scm
challenge.scm
container.scm
copy.scm
describe.scm
download.scm
edit.scm
environment.scm
gc.scm
graph.scm
hash.scm
import.scm
lint.scm
offload.scm
pack.scm
package.scm
perform-download.scm
processes.scm
publish.scm
pull.scm
refresh.scm
repl.scm
size.scm
substitute.scm
system.scm
weather.scm