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
..
2018-09-04 17:25:11 +02:00
2018-09-04 17:25:11 +02:00
2018-09-04 17:25:11 +02:00
2018-09-04 17:25:11 +02:00
2018-11-28 10:39:58 +01:00
2018-09-04 17:25:11 +02:00
2018-06-06 14:37:35 +02:00
2018-09-07 11:40:22 +02:00
2018-03-27 14:51:44 +02:00
2018-12-17 21:43:51 +01:00
2018-09-04 17:25:11 +02:00
2018-09-04 17:25:11 +02:00
2017-09-28 13:10:10 +02:00
2018-10-29 00:13:38 +01:00
2018-10-18 23:46:33 -04:00
2017-06-15 17:03:19 +02:00
2018-05-10 14:53:56 +02:00
2018-05-13 13:29:27 +02:00
2017-11-17 10:47:49 +01:00