diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-03-16 15:31:18 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-03-16 15:57:47 +0100 |
commit | 23d60ba65c137abf472a25db7317154abfc4af4d (patch) | |
tree | af75ddca9b5f6fccfa24d3f5b32bcf145413436b /emacs.am | |
parent | 1cf7e31898ba444c7c1614aa5d5680806b60442a (diff) | |
download | gnu-guix-23d60ba65c137abf472a25db7317154abfc4af4d.tar gnu-guix-23d60ba65c137abf472a25db7317154abfc4af4d.tar.gz |
substitute: Honor the 'max-age' of 'Cache-Control' headers.
This allows substitute servers to tell 'guix substitute' how long they
can cache narinfo lookups.
* guix/scripts/substitute.scm (cache-narinfo!): Add 'ttl' parameter.
[cache-entry]: Honor it.
(fetch-narinfos)[handle-narinfo-response]: Check the 'Cache-Control'
header of RESPONSE and pass its 'max-age' value to 'cache-narinfo!'.
Diffstat (limited to 'emacs.am')
0 files changed, 0 insertions, 0 deletions