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-12-17 21:43:51 +01:00
2017-07-21 17:03:24 +02:00
2017-01-28 18:55:20 +01:00
2018-08-26 01:47:40 +02:00
2018-11-28 10:39:58 +01:00
2018-09-07 11:40:22 +02:00
2018-09-25 18:45:50 +02:00
2018-12-04 10:57:56 +01:00
2018-09-04 17:25:11 +02:00
2017-11-08 22:31:58 +01:00
2018-03-20 17:17:58 +01:00
2018-06-01 15:21:28 +02:00
2018-09-04 17:25:11 +02:00
2018-10-26 20:05:21 +02:00
2017-12-12 18:11:22 +01:00
2018-11-24 19:52:16 +01:00