guix-devel/guix
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
..
build hg-fetch: Remove .hg directories of sub-repositories. 2018-12-03 12:29:08 +01:00
build-system
import import: Update opam importer. 2018-12-17 21:43:51 +01:00
scripts publish: Add a 'Cache-Control' header on /nar responses. 2018-12-17 23:33:42 +01:00
store deduplication: Gracefully handle ENOSPC raised by 'link' calls. 2018-12-14 12:07:24 +01:00
tests
base16.scm
base32.scm
base64.scm
build-system.scm
cache.scm
channels.scm guix: Add support for channel dependencies. 2018-12-09 13:55:22 +01:00
ci.scm
combinators.scm
config.scm.in
cpio.scm linux-initrd: Produce cpio archives with zeroed timestamps, etc. 2015-06-24 18:05:03 +02:00
cve.scm
cvs-download.scm
derivations.scm
describe.scm
discovery.scm
docker.scm
download.scm
elf.scm
ftp-client.scm
gexp.scm
git-download.scm
git.scm
glob.scm
gnu-maintenance.scm gnu-maintenance: Base kernel.org updater on HTML directory listings. 2018-11-10 23:33:46 +01:00
gnupg.scm gnupg: Change default keyserver. 2018-09-25 18:45:50 +02:00
grafts.scm grafts: Mark as non substitutable. 2018-12-04 10:57:56 +01:00
graph.scm
hg-download.scm
http-client.scm
i18n.scm
inferior.scm
licenses.scm
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
packages.scm gexp: Remove backward compatibility hack for 'imported-files'. 2018-07-26 22:59:49 +02:00
pki.scm
profiles.scm
profiling.scm
progress.scm
records.scm records: Adjust to test changes in 'record-abi-mismatch-error'. 2018-08-31 17:26:56 +02:00
scripts.scm
search-paths.scm
self.scm etc: Add "ci.guix.info.pub" public key file. 2018-12-04 10:57:56 +01:00
serialization.scm
sets.scm
ssh.scm
status.scm
store.scm build: Default to https://ci.guix.info for substitutes. 2018-12-04 10:57:56 +01:00
svn-download.scm
swh.scm
tests.scm
ui.scm
upstream.scm
utils.scm
workers.scm workers: Display backtrace in pre-unwind handler. 2017-11-17 10:47:56 +01:00
zlib.scm