publish: Advertise a short TTL for "baking" 404s.
commit24b21720f7c3a368efc32017c126e107a5d76f52
authorLudovic Courtès <ludo@gnu.org>
Thu, 11 May 2017 08:23:27 +0000 (11 10:23 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 11 May 2017 16:05:42 +0000 (11 18:05 +0200)
tree326f165b42f7b21d703984626ec44144cf0ed67f
parent5899fafbfefcd7682aec8f2caaaad3add678a3c4
publish: Advertise a short TTL for "baking" 404s.

* guix/scripts/publish.scm (not-found): Add #:phrase and #:ttl
parameters and honor them.
* tests/publish.scm ("with cache"): Check the 'cache-control' header on
of the 404 response.
guix/scripts/publish.scm
tests/publish.scm