From b4187c61509c48418105d03de50183e5f5f9bf0d Mon Sep 17 00:00:00 2001 From: James Salter Date: Tue, 28 Sep 2021 13:24:54 +0100 Subject: [PATCH] Fix rule --- nginx/conf.d/default.conf | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 638f80d124..b2b539bfe4 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -5,9 +5,11 @@ server { #access_log /var/log/nginx/host.access.log main; - location / { - root /usr/share/nginx/html; - index index.html index.htm; + root /usr/share/nginx/html; + index index.html index.htm; + + # Set no-cache for the index.html only so that browsers always check for a new copy of Element Web. + location = /index.html { add_header Cache-Control "no-cache"; } @@ -16,9 +18,6 @@ server { # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 #