diff options
Disable HTML caching
This caused problems where new content was only shown on explicit reloads
Diffstat (limited to 'host/software/server')
-rw-r--r-- | host/software/server/website.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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: { |