Skip to content

Commit

Permalink
Merge pull request #345 from jdno/segmented-caching-block-size
Browse files Browse the repository at this point in the history
Increase block size for segmented caching
  • Loading branch information
jdno authored Oct 3, 2023
2 parents 95e1ee7 + dd2c9f0 commit 1714902
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terragrunt/accounts/legacy/releases-prod/deployed-ref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
04334ff7f9612c5a945e3b043b6c62c552f3c12c
425e9f6311da6fd197f3b89e00bf583fba194465
18 changes: 17 additions & 1 deletion terragrunt/modules/release-distribution/fastly-static.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,23 @@ resource "fastly_service_vcl" "static" {
snippet {
name = "enable segmented caching"
type = "recv"
content = "set req.enable_segmented_caching = true;"
content = <<-VCL
set req.enable_segmented_caching = true;
set segmented_caching.block_size = 10000000;
VCL
}

# The streaming miss feature streams responses back to clients immediately,
# which reduces the first-byte latency.
# https://docs.fastly.com/en/guides/streaming-miss
snippet {
name = "enable streaming miss"
type = "fetch"
content = <<-VCL
if (req.url.ext ~ "^(?:gz|xz|zip)$") {
set beresp.do_stream = true;
}
VCL
}

snippet {
Expand Down

0 comments on commit 1714902

Please sign in to comment.