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

Tag rustup artifacts with surrogate key #416

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

jdno
Copy link
Member

@jdno jdno commented May 9, 2024

We use surrogate keys1 on Fastly to invalidate the cache for specific objects, e.g. when new versions of Rust or rustup are released. Surrogate keys are transparently set in the Fastly configuration based on the request path.

A new VCL snippet has been added that tags every rustup artifact with the rustup surrogate key so that we can purge them from the cache when a new rustup version is released.

This is part of #415.

Footnotes

  1. https://www.fastly.com/documentation/guides/concepts/edge-state/cache/purging/#surrogate-key-purge

We use surrogate keys[^1] on Fastly to invalidate the cache for specific
objects, e.g. when new versions of Rust or rustup are released.
Surrogate keys are transparently set in the Fastly configuration based
on the request path.

A new VCL snippet has been added that tags every rustup artifact with
the `rustup` surrogate key so that we can purge them from the cache when
a new rustup version is released.
@jdno
Copy link
Member Author

jdno commented May 9, 2024

I wrote some documentation on how to test the surrogate keys here: rust-lang/infra-team#115

@jdno jdno merged commit 25a07ab into rust-lang:master Aug 14, 2024
3 checks passed
@jdno jdno deleted the rustup-surrogate-key branch August 14, 2024 09:05
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.

2 participants