about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--matrix.nix11
1 files changed, 11 insertions, 0 deletions
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;