diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-12-17 23:01:51 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-12-17 23:33:42 +0100 |
commit | 9b9de08477afe0ea519f916ad3d33c9720c3278d (patch) | |
tree | 49cee656bcf353482b0fb918497d316b787580ce /guix/scripts/archive.scm | |
parent | a93c1606312e41ffe509977502ce6055f40bc629 (diff) |
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.
Diffstat (limited to 'guix/scripts/archive.scm')
0 files changed, 0 insertions, 0 deletions