From 07e36f7625c190be1cd21fe6c967bf295e0a956c Mon Sep 17 00:00:00 2001 From: Luis-Hebendanz Date: Tue, 19 Mar 2024 13:11:43 +0700 Subject: [PATCH] Set cache to expire after one hour on clan.lol --- modules/web01/homepage.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/web01/homepage.nix b/modules/web01/homepage.nix index 9050fef..0072985 100644 --- a/modules/web01/homepage.nix +++ b/modules/web01/homepage.nix @@ -31,6 +31,11 @@ charset utf-8; source_charset utf-8; ''; + + # Make sure to expire the cache after 1 hour + locations."/".extraConfig = '' + add_header Cache-Control "public, max-age=3600"; + ''; locations."/thaigersprint".return = "307 https://pad.lassul.us/s/clan-thaigersprint"; };