From 9d32f1e1a37a063b6d1fa8924e4022fd2581f3be Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 22 Jun 2019 23:43:50 +0200 Subject: Disable HTML caching This caused problems where new content was only shown on explicit reloads --- host/software/server/website.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/software/server') diff --git a/host/software/server/website.nix b/host/software/server/website.nix index 12cab80..9b2493e 100644 --- a/host/software/server/website.nix +++ b/host/software/server/website.nix @@ -18,6 +18,11 @@ website = sub: default { "/".root = "/home/public/${sub}/result"; + "/".extraConfig = '' + location ~* \.(?:html?|xml)$ { + expires -1; + } + ''; }; proxy = target: { -- cgit v1.2.3