From ce883e277709f5b5b2e34542fd1edb1602de8e47 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Sat, 17 May 2025 16:55:54 +0200 Subject: [PATCH] nginx: set cache control header --- deemz.org/configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deemz.org/configuration.nix b/deemz.org/configuration.nix index 0285402..da12bba 100644 --- a/deemz.org/configuration.nix +++ b/deemz.org/configuration.nix @@ -224,6 +224,7 @@ let secrets = import ../secrets.nix; in basicAuth = userlist; extraConfig = '' autoindex on; + add_header Cache-Control max-age=172800 ''; proxyWebsockets = true; }; @@ -339,4 +340,4 @@ let secrets = import ../secrets.nix; in # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "21.11"; # Did you read the comment? -} \ No newline at end of file +}