From c338e29019237bd9889c0818328460010e908d29 Mon Sep 17 00:00:00 2001 From: fdrab Date: Sat, 19 Oct 2024 07:39:23 +0000 Subject: [PATCH] added no-store cache header to / to prevent webui from serving cached versions of workflows --- CHANGELOG.rst | 1 + conf/nginx/st2.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0fea29042f..f53b44ea3a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -32,6 +32,7 @@ Fixed * Fix Popen.pid typo in st2tests. #6184 * Bump tooz package to `6.2.0` to fix TLS. #6220 (@jk464) * Shells via `pywinrm` are initialized with the 65001 codepage to ensure raw string responses are UTF-8. #6034 (@stealthii) +* Added no-store header for location / in nginx config to prevent web ui serving cached versions of opened flows. st2web#1030 (@fdrab) Changed ~~~~~~~ diff --git a/conf/nginx/st2.conf b/conf/nginx/st2.conf index 6e83d18cbe..0135f3e26e 100644 --- a/conf/nginx/st2.conf +++ b/conf/nginx/st2.conf @@ -157,6 +157,7 @@ server { } location / { + add_header Cache-Control "no-store"; max_ranges 0; root /opt/stackstorm/static/webui/; index index.html;