Skip to content

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
@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