From 378372cb62968412fab72744d081a62458a908ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Fri, 2 Jan 2026 23:29:16 +0100 Subject: [PATCH] config caddy --- Caddyfile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Caddyfile b/Caddyfile index aa4c966..54baa96 100644 --- a/Caddyfile +++ b/Caddyfile @@ -5,8 +5,6 @@ -Server -X-Powered-By -Via - -Date - -Content-Disposition defer } @@ -14,11 +12,13 @@ path *.css *.js } handle @static { - header Cache-Control "public, max-age=3600, immutable" - -ETag - -Content-Disposition - -Last-Modified - defer + header { + Cache-Control "public, max-age=31536000, immutable" + -ETag + -Content-Disposition + -Last-Modified + defer + } reverse_proxy gpon-monitoring-app:{$LISTEN_PORT} } @@ -26,9 +26,11 @@ path /api/* } handle @api { - header Cache-Control "no-cache, no-store, must-revalidate" + header { + Cache-Control "no-cache, no-store, must-revalidate" + defer + } reverse_proxy gpon-monitoring-app:{$LISTEN_PORT} - defer } encode gzip zstd