From 2164e2844db4cb3b565988150e666a24d596c6c0 Mon Sep 17 00:00:00 2001 From: Spencer Perkins <95900100+SpecialThing44@users.noreply.github.com> Date: Wed, 28 May 2025 10:50:45 -0400 Subject: [PATCH] Ad 60 seconds timer on webpage cache - To prevent cache from keeping maintenance page around on peoples browsers after maintenance is over --- Caddyfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Caddyfile b/Caddyfile index 62caa42..35d3390 100644 --- a/Caddyfile +++ b/Caddyfile @@ -3,6 +3,7 @@ root * /caddy/ try_files /index.json header Content-Type "application/json" + header Cache-Control max-age=60 file_server { status 503 } @@ -14,6 +15,7 @@ handle { root * /caddy/ try_files /index.html + header Cache-Control max-age=60 file_server }