Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly override the Cache-Control header within the registry #40

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

swlynch99
Copy link
Contributor

By default, GCS will return a Cache-Control header with max-age=3600. This is fine for the .crate files in the registry but causes issues for the index files which are updated when a new crate version is published.

By setting the cache policy to no-cache for the index files we can ensure that we don't have to worry about old cached responses.

By default, GCS will return a Cache-Control header with max-age=3600.
This is fine for the .crate files in the registry but causes issues for
the index files which are updated when a new crate version is published.

By setting the cache policy to no-cache for the index files we can
ensure that we don't have to worry about old cached responses.
@swlynch99 swlynch99 enabled auto-merge (squash) September 5, 2024 20:47
@swlynch99 swlynch99 merged commit 376b821 into main Sep 5, 2024
7 checks passed
@swlynch99 swlynch99 deleted the sean/publish-set-cache-control branch September 5, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant