From 94325e5ee9cd388a469c826ba4bb476030625cd3 Mon Sep 17 00:00:00 2001 From: Deniz Erdogan Date: Wed, 13 Mar 2024 08:25:22 +0100 Subject: [PATCH] nginx: add Cache-Control header --- nginx/default.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/default.conf b/nginx/default.conf index edb1224f..0697235c 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -21,6 +21,8 @@ server { location / { root /usr/share/nginx/html; try_files $uri /index.html; + + add_header 'Cache-Control' 'no-cache' always; } # deny access to .htaccess files, if Apache's document root concurs with nginx's one