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 Merge branch 'master' into core-updates 2018-11-24 19:44:05 +01:00
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 ci: Add procedures to access evaluations. 2018-11-10 23:33:46 +01:00
combinators.scm
config.scm.in build: Remove checks for 'nix-instantiate'. 2018-06-18 23:19:51 +02:00
cpio.scm
cve.scm cve: Update feed URL. 2018-08-26 01:47:40 +02:00
cvs-download.scm
derivations.scm derivations: Add properties. 2018-11-28 10:39:58 +01:00
describe.scm Add 'guix describe'. 2018-09-07 11:40:22 +02:00
discovery.scm discovery: Add 'scheme-modules*'. 2018-09-02 16:43:10 +02:00
docker.scm docker: Hide scary-looking but harmless tar failure messages. 2018-11-29 09:30:00 +01:00
download.scm download: Add berlin.guixsd.org as a content-addressed mirror. 2018-11-28 22:25:34 +01:00
elf.scm
ftp-client.scm
gexp.scm Merge branch 'master' into core-updates 2018-11-29 15:56:49 +01:00
git-download.scm git-download: Download from Software Heritage as a last resort. 2018-11-26 11:10:20 +01:00
git.scm git: Nicely report '--with-commit' errors. 2018-11-30 17:03:04 +01:00
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 Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
i18n.scm
inferior.scm inferior: Add 'inferior-eval-with-store'. 2018-11-28 10:39:58 +01:00
licenses.scm
man-db.scm profiles: Use 'with-extensions'. 2018-06-01 15:21:28 +02:00
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm nar: Access the database instead of connecting to the daemon. 2018-11-13 14:59:45 +01:00
packages.scm gexp: Remove backward compatibility hack for 'imported-files'. 2018-07-26 22:59:49 +02:00
pki.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
profiles.scm profiles: Fix typo in exports. 2018-10-26 20:05:21 +02:00
profiling.scm
progress.scm progress: Do not display the last 0B transfer when size is unknown. 2018-11-16 14:53:44 +01:00
records.scm records: Adjust to test changes in 'record-abi-mismatch-error'. 2018-08-31 17:26:56 +02:00
scripts.scm scripts: Suggest running 'guix gc' when we're short on disk space. 2018-10-23 01:04:39 +02:00
search-paths.scm
self.scm etc: Add "ci.guix.info.pub" public key file. 2018-12-04 10:57:56 +01:00
serialization.scm serialization: Remove redundancy in 'write-file'. 2018-09-23 23:34:16 +02:00
sets.scm
ssh.scm ssh: Make 'send-files' more robust. 2018-11-24 19:52:16 +01:00
status.scm status: Report grafting derivations specially. 2018-11-28 10:39:58 +01:00
store.scm build: Default to https://ci.guix.info for substitutes. 2018-12-04 10:57:56 +01:00
svn-download.scm
swh.scm swh: Export 'save-origin' and related bindings. 2018-11-27 12:12:33 +01:00
tests.scm tests: Check file canonicalization for 'restore-file-set'. 2018-11-13 14:59:46 +01:00
ui.scm ui: 'show-what-to-build' reports grafts separately. 2018-11-28 10:39:58 +01:00
upstream.scm
utils.scm Revert "guix: Compress and decompress xz archives in parallel." 2018-07-22 18:01:35 +02:00
workers.scm
zlib.scm