Skip to content
Open
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
5 changes: 5 additions & 0 deletions terraform/file-hosting/vcl/files.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ sub vcl_fetch {
set beresp.cacheable = true;
}

# Enable Streaming miss for package URLS
if (req.url ~ "^/packages/[a-f0-9]{2}/[a-f0-9]{2}/[a-f0-9]{60}/") {
set beresp.do_stream = true;
}

# If we successfully got a 404 response from GCS for a Package URL restart
# to check S3 for the file!
if (req.restarts == 0 && req.backend == GCS && req.url ~ "^/packages/[a-f0-9]{2}/[a-f0-9]{2}/[a-f0-9]{60}/" && http_status_matches(beresp.status, "404")) {
Expand Down