We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8465b62 + 384dcc9 commit 25a07abCopy full SHA for 25a07ab
terragrunt/modules/release-distribution/fastly-static.tf
@@ -79,6 +79,21 @@ resource "fastly_service_vcl" "static" {
79
VCL
80
}
81
82
+ # When a new version of rustup is released, the release script invalidates
83
+ # the CloudFront cache for `/rustup/*` and any object that is tagged with
84
+ # the `rustup` key on Fastly.
85
+ # See https://github.com/rust-lang/rustup/blob/master/ci/sync-dist.py for
86
+ # details.
87
+ snippet {
88
+ name = "set cache key for rustup"
89
+ type = "fetch"
90
+ content = <<-VCL
91
+ if (req.url ~ "^\/rustup\/") {
92
+ set beresp.http.Surrogate-Key = "rustup";
93
+ }
94
+ VCL
95
96
+
97
snippet {
98
name = "redirect rustup.sh to rustup.rs"
99
type = "error"
0 commit comments