Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions terragrunt/modules/release-distribution/fastly-static.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ resource "fastly_service_vcl" "static" {
VCL
}

# When a new version of rustup is released, the release script invalidates
# the CloudFront cache for `/rustup/*` and any object that is tagged with
# the `rustup` key on Fastly.
# See https://github.com/rust-lang/rustup/blob/master/ci/sync-dist.py for
# details.
snippet {
name = "set cache key for rustup"
type = "fetch"
content = <<-VCL
if (req.url ~ "^\/rustup\/") {
set beresp.http.Surrogate-Key = "rustup";
}
VCL
}

snippet {
name = "redirect rustup.sh to rustup.rs"
type = "error"
Expand Down