From a88dd7c8ca6f2353768b5c45640303734a1953e4 Mon Sep 17 00:00:00 2001 From: zender Date: Mon, 23 Mar 2026 18:16:27 +0000 Subject: [PATCH 1/3] specifying a cache value we must not use ALWAYS unless its NO CACHE --- ...eploy_as_executable %}default.conf.template{% endif %}.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja b/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja index f2b025c4..a280e25c 100644 --- a/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja +++ b/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja @@ -11,7 +11,7 @@ location /_nuxt/ { # Cache Nuxt static assets since they already have content hashes in their filenames and won't change until the next deployment - add_header Cache-Control "max-age=604800, private, immutable" always; + add_header Cache-Control "max-age=604800, private, immutable"; } # Serve the static site From 8822527e513475e4226be710ebb51fab8e850231 Mon Sep 17 00:00:00 2001 From: zender Date: Mon, 23 Mar 2026 18:21:08 +0000 Subject: [PATCH 2/3] Consistency is good --- ...y_as_executable %}default.conf.template{% endif %}.jinja | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja b/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja index a280e25c..147d6cfa 100644 --- a/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja +++ b/template/frontend/{% if not deploy_as_executable %}default.conf.template{% endif %}.jinja @@ -53,9 +53,9 @@ # Named location with shared proxy configuration location @proxy { - add_header Cache-Control "no-cache, no-store, must-revalidate"; - add_header Pragma "no-cache"; - add_header Expires "0"; + add_header Cache-Control "no-cache, no-store, must-revalidate" always; + add_header Pragma "no-cache" always; + add_header Expires "0" always; proxy_pass http://${BACKEND_HOST}:${BACKEND_PORT}; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; From dbc6b4b9406b064fbea4520c44982436c0aa509b Mon Sep 17 00:00:00 2001 From: zender Date: Mon, 23 Mar 2026 18:47:06 +0000 Subject: [PATCH 3/3] Add HEAD to cors as well --- .../src/backend_api/app_def.py.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/{% if has_backend %}backend{% endif %}/src/backend_api/app_def.py.jinja b/template/{% if has_backend %}backend{% endif %}/src/backend_api/app_def.py.jinja index c553c275..a2a97127 100644 --- a/template/{% if has_backend %}backend{% endif %}/src/backend_api/app_def.py.jinja +++ b/template/{% if has_backend %}backend{% endif %}/src/backend_api/app_def.py.jinja @@ -96,7 +96,7 @@ try: CORSMiddleware, allow_origins=["*"], # Super permissive CORS setting since this is for intranet allow_credentials=True, - allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"], + allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"], allow_headers=["*"], ){% endraw %}{% if backend_uses_graphql %}{% raw %}