fix: prevent stale Kanban script after deployment
This commit is contained in:
@@ -32,5 +32,10 @@ server {
|
|||||||
proxy_read_timeout 30s;
|
proxy_read_timeout 30s;
|
||||||
client_max_body_size 2m;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ label{display:inline-flex;gap:8px;align-items:center;margin:5px}#kan{display:gri
|
|||||||
<p id="status" role="status"></p>
|
<p id="status" role="status"></p>
|
||||||
<section id="reviews"></section><div id="kan"></div>
|
<section id="reviews"></section><div id="kan"></div>
|
||||||
<details><summary>Eventos locais de integração</summary><pre id="events"></pre></details>
|
<details><summary>Eventos locais de integração</summary><pre id="events"></pre></details>
|
||||||
<script src="/upload.js"></script><script src="/kanban.js"></script></body></html>
|
<script src="/upload.js"></script><script src="/kanban.js?v=operator-email-1"></script></body></html>
|
||||||
|
|||||||
Reference in New Issue
Block a user