From 87275a7ad7e11ff5aefe5255134f721ce71c8dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 24 May 2024 17:20:30 +0200 Subject: [PATCH] Update old.nginx.conf --- conf/old.nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/old.nginx.conf b/conf/old.nginx.conf index a55f371..620f6bf 100644 --- a/conf/old.nginx.conf +++ b/conf/old.nginx.conf @@ -25,6 +25,10 @@ if ($args ~ ver=) { set $cacheControl max-age=31536000; } +if ($uri ~ ^(\/|.*\/|.*\.html)$) { + set $cacheControl no-cache; +} + more_set_headers "Cache-Control: $cacheControl"; set $styleSrc "'unsafe-inline' 'self' https://${main_domain}"; set $connectSrc "'self' https://${main_domain} blob: wss://${api_domain} https://${sandbox_domain}";