diff options
author | Adrian Kummerlaender | 2019-06-22 23:43:50 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2019-06-22 23:45:11 +0200 |
commit | 9d32f1e1a37a063b6d1fa8924e4022fd2581f3be (patch) | |
tree | 0920547507ff29de14482758eef5d34edf8ad420 | |
parent | 98774d1c93fd05754a2a67584457cabe24d57586 (diff) | |
download | nixos_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
-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: { |