Skip to content

Commit

Permalink
buildcache: Tell servers not to cache index or hash (spack#40339)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwittenburg authored Oct 12, 2023
1 parent 01747b5 commit d9cb1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spack/spack/binary_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,15 +913,15 @@ def _read_specs_and_push_index(file_list, read_method, cache_prefix, db, temp_di
index_json_path,
url_util.join(cache_prefix, "index.json"),
keep_original=False,
extra_args={"ContentType": "application/json"},
extra_args={"ContentType": "application/json", "CacheControl": "no-cache"},
)

# Push the hash
web_util.push_to_url(
index_hash_path,
url_util.join(cache_prefix, "index.json.hash"),
keep_original=False,
extra_args={"ContentType": "text/plain"},
extra_args={"ContentType": "text/plain", "CacheControl": "no-cache"},
)


Expand Down

0 comments on commit d9cb1a1

Please sign in to comment.