summaryrefslogtreecommitdiff
path: root/release.nix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-03-16 15:31:18 +0100
committerLudovic Courtès <ludo@gnu.org>2016-03-16 15:57:47 +0100
commit23d60ba65c137abf472a25db7317154abfc4af4d (patch)
treeaf75ddca9b5f6fccfa24d3f5b32bcf145413436b /release.nix
parent1cf7e31898ba444c7c1614aa5d5680806b60442a (diff)
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 'release.nix')
0 files changed, 0 insertions, 0 deletions