From 9b8c18d5ca3dd55daff999a5799b81298ff499a0 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 30 Jul 2023 11:18:18 +0900 Subject: Disable caching for element where appropriate --- matrix.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/matrix.nix b/matrix.nix index a524b95..55b32cd 100644 --- a/matrix.nix +++ b/matrix.nix @@ -95,6 +95,17 @@ in { "than.${domain}" = { enableACME = true; forceSSL = true; + locations = let + noCache = { + extraConfig = '' + add_header Cache-Control "no-cache"; + ''; + }; + in { + "/index.html" = noCache; + "/version" = noCache; + "/config" = noCache; + }; root = pkgs.element-web.override { conf = { default_server_config = client; -- cgit 1.4.1