From 2f3d1e2a9bfc6728564194a9723d0468d3eda39b Mon Sep 17 00:00:00 2001 From: juvdiaz Date: Thu, 4 Jun 2026 10:59:23 -0600 Subject: [PATCH] Add cache headers for website static output --- apps/website/httpd-php-fpm.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/website/httpd-php-fpm.conf b/apps/website/httpd-php-fpm.conf index 750f67f..bf50b8a 100644 --- a/apps/website/httpd-php-fpm.conf +++ b/apps/website/httpd-php-fpm.conf @@ -22,6 +22,14 @@ RewriteRule ^/?(?:index\.php)?$ /static-pages/nah/index.html [END] RewriteCond %{QUERY_STRING} !(^|&)lang= [NC] RewriteRule ^/?(cv|blog|demos|homelab-tree)\.php$ /static-pages/nah/$1.html [END] + + Header set Cache-Control "public, max-age=300, s-maxage=3600" + + + + Header set Cache-Control "no-store" + + SetHandler "proxy:fcgi://127.0.0.1:9000"