Skip to content

Commit 6f289c5

Browse files
authored
Merge pull request #7518 from ameukam/fastly-fix-regex-cache
Fastly: fix the cache rule for the version markers.
2 parents 21cdbb2 + 4e1dc5f commit 6f289c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

infra/fastly/terraform/dl-sandbox.k8s.dev/vcl/binaries.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sub vcl_fetch {
4545
}
4646

4747
# Ensure version markers are not cached at the edge
48-
if (req.url.path ~ "^/release/(latest|stable)(-\d+(\.\d+))?\.txt\z") {
48+
if (req.url.path ~ "^/release/(latest|stable)([^/]*)\.txt\z") {
4949
set beresp.cacheable = false;
5050
set beresp.ttl = 0s;
5151
return (pass);

infra/fastly/terraform/dl.k8s.io/vcl/binaries.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sub vcl_fetch {
4545
}
4646

4747
# Ensure version markers are not cached at the edge
48-
if (req.url.path ~ "^/release/(latest|stable)(-\d+(\.\d+))?\.txt\z") {
48+
if (req.url.path ~ "^/release/(latest|stable)([^/]*)\.txt\z") {
4949
set beresp.cacheable = false;
5050
set beresp.ttl = 0s;
5151
return (pass);

0 commit comments

Comments
 (0)