From 88a2a6f06039c831992c46b09cf4377ef0154ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Fri, 18 Sep 2026 14:27:33 -0300 Subject: [PATCH] fix: prevent stale Kanban script after deployment --- deploy/nginx.conf.template | 7 ++++++- local/static/kanban.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deploy/nginx.conf.template b/deploy/nginx.conf.template index c84e6e4..a56bc33 100644 --- a/deploy/nginx.conf.template +++ b/deploy/nginx.conf.template @@ -32,5 +32,10 @@ server { proxy_read_timeout 30s; client_max_body_size 2m; } - location / { try_files $uri $uri/ =404; } + # Always revalidate HTML/JS/CSS after a deployment. Without this, a browser + # can pair a new Kanban page with a cached older script after a rollout. + location / { + expires -1; + try_files $uri $uri/ =404; + } } diff --git a/local/static/kanban.html b/local/static/kanban.html index c1ed60c..74d4480 100644 --- a/local/static/kanban.html +++ b/local/static/kanban.html @@ -18,4 +18,4 @@ label{display:inline-flex;gap:8px;align-items:center;margin:5px}#kan{display:gri

Eventos locais de integração
- +