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
4 changes: 2 additions & 2 deletions datagovuk/datagovuk.vcl.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ sub vcl_fetch {
}

%{ if contains(["staging", "production"], environment) ~}
# Set the Cache-Control header for /find-assets/ and sub-paths for 1 year
if (req.url ~ "^/(find-assets|javascript)/" && beresp.status == 200) {
# Set the Cache-Control header for asset-related sub-paths for 1 year
if (req.url ~ "^/(find-assets|javascript|assets)/" && beresp.status == 200) {
set beresp.http.Cache-Control = "public, max-age=31536000, immutable";
set beresp.ttl = 31536000s;
}
Expand Down