diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-12-21 18:41:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 18:41:59 +0100 |
commit | 4473d5d811f1e1d8ee811069b2b8ba72b7bd15ad (patch) | |
tree | b52bd8fe6bdd4439224b3002fb3e949ef40bddb6 /.github/workflows/valid-style.yml | |
parent | c3e61664cfa5e9d989f8c9b7854fd4296858a8b0 (diff) | |
download | spack-4473d5d811f1e1d8ee811069b2b8ba72b7bd15ad.tar.gz spack-4473d5d811f1e1d8ee811069b2b8ba72b7bd15ad.tar.bz2 spack-4473d5d811f1e1d8ee811069b2b8ba72b7bd15ad.tar.xz spack-4473d5d811f1e1d8ee811069b2b8ba72b7bd15ad.zip |
etags for index.json invalidation, test coverage (#34641)
Implement an alternative strategy to do index.json invalidation.
The current approach of pairs of index.json / index.json.hash is
problematic because it leads to races.
The standard solution for cache invalidation is etags, which are
supported by both http and s3 protocols, which allows one to do
conditional fetches.
This PR implements that for the http/https schemes. It should also work
for s3 schemes, but that requires other prs to be merged.
Also it improves unit tests for index.json fetches.
Diffstat (limited to '.github/workflows/valid-style.yml')
0 files changed, 0 insertions, 0 deletions