summaryrefslogtreecommitdiff
path: root/host/software/server/website.nix
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-22 23:43:50 +0200
committerAdrian Kummerlaender2019-06-22 23:45:11 +0200
commit9d32f1e1a37a063b6d1fa8924e4022fd2581f3be (patch)
tree0920547507ff29de14482758eef5d34edf8ad420 /host/software/server/website.nix
parent98774d1c93fd05754a2a67584457cabe24d57586 (diff)
downloadnixos_system-9d32f1e1a37a063b6d1fa8924e4022fd2581f3be.tar
nixos_system-9d32f1e1a37a063b6d1fa8924e4022fd2581f3be.tar.gz
nixos_system-9d32f1e1a37a063b6d1fa8924e4022fd2581f3be.tar.bz2
nixos_system-9d32f1e1a37a063b6d1fa8924e4022fd2581f3be.tar.lz
nixos_system-9d32f1e1a37a063b6d1fa8924e4022fd2581f3be.tar.xz
nixos_system-9d32f1e1a37a063b6d1fa8924e4022fd2581f3be.tar.zst
nixos_system-9d32f1e1a37a063b6d1fa8924e4022fd2581f3be.zip
Disable HTML caching
This caused problems where new content was only shown on explicit reloads
Diffstat (limited to 'host/software/server/website.nix')
-rw-r--r--host/software/server/website.nix5
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: {