From 111eabf3a4c032c4fd164918efc34b681d3f1da9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:48:05 +0000 Subject: [PATCH 1/2] Initial plan From 63991a3a28cda036a6482618c40869103e261394 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:54:01 +0000 Subject: [PATCH 2/2] Add cache-control headers for static assets in nginx configs Co-authored-by: Maelstromeous <1776058+Maelstromeous@users.noreply.github.com> --- provisioning/production/files/nginx/production.conf | 9 ++++++++- provisioning/staging/files/nginx/staging.conf | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/provisioning/production/files/nginx/production.conf b/provisioning/production/files/nginx/production.conf index 984960d5..a3e0837f 100644 --- a/provisioning/production/files/nginx/production.conf +++ b/provisioning/production/files/nginx/production.conf @@ -1,7 +1,13 @@ map $sent_http_content_type $expires { "text/html" epoch; "text/html; charset=utf-8" epoch; - default off; + default 1y; +} + +map $sent_http_content_type $cache_control { + "text/html" "no-cache, no-store, must-revalidate"; + "text/html; charset=utf-8" "no-cache, no-store, must-revalidate"; + default "public, max-age=31536000, immutable"; } server { @@ -22,6 +28,7 @@ server { location / { expires $expires; + add_header Cache-Control $cache_control; proxy_redirect off; proxy_set_header Host $host; diff --git a/provisioning/staging/files/nginx/staging.conf b/provisioning/staging/files/nginx/staging.conf index e3c27a90..7ece4538 100644 --- a/provisioning/staging/files/nginx/staging.conf +++ b/provisioning/staging/files/nginx/staging.conf @@ -1,7 +1,13 @@ map $sent_http_content_type $expires { "text/html" epoch; "text/html; charset=utf-8" epoch; - default off; + default 1y; +} + +map $sent_http_content_type $cache_control { + "text/html" "no-cache, no-store, must-revalidate"; + "text/html; charset=utf-8" "no-cache, no-store, must-revalidate"; + default "public, max-age=31536000, immutable"; } server { @@ -16,6 +22,7 @@ server { location / { expires $expires; + add_header Cache-Control $cache_control; proxy_redirect off; proxy_set_header Host $host;