guix-play/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
system
archive.scm
authenticate.scm
build.scm build: Default to https://ci.guix.info for substitutes. 2018-12-04 10:57:56 +01:00
challenge.scm
container.scm
copy.scm
describe.scm describe: In 'channels' format, quote the channel name. 2018-12-07 15:14:12 +01:00
download.scm
edit.scm
environment.scm environment: Support package transformation options. 2018-12-17 23:33:42 +01:00
gc.scm
graph.scm
hash.scm guix hash: Fix version and help messages 2018-11-28 10:39:58 +01:00
import.scm
lint.scm lint: 'check-derivation' fully disables grafts. 2018-11-20 18:36:05 +01:00
offload.scm
pack.scm pack: List the available formats. 2018-11-27 19:23:39 +02:00
package.scm guix package: '--show' errors when asked for a non-existent package. 2018-11-11 23:53:29 +01:00
perform-download.scm
processes.scm
publish.scm publish: Add a 'Cache-Control' header on /nar responses. 2018-12-17 23:33:42 +01:00
pull.scm pull: Add missing monadic 'return'. 2018-11-07 21:56:16 +01:00
refresh.scm refresh: Account for overlapping updater coverage. 2018-12-10 19:59:01 -06:00
repl.scm repl: Load user's initialization file. 2018-12-03 08:04:51 +03:00
size.scm Remove most references to hydra.gnu.org. 2018-12-04 10:57:56 +01:00
substitute.scm substitute: Ignore irrelevant narinfo signatures. 2018-12-14 00:02:59 +01:00
system.scm guix system: Fix bootloader config file generation by 'guix system roll-back'. 2018-12-07 15:14:12 +01:00
weather.scm