config caddy

This commit is contained in:
Mateusz Gruszczyński
2026-01-02 23:29:16 +01:00
parent 8b280f578e
commit 378372cb62

View File

@@ -5,8 +5,6 @@
-Server -Server
-X-Powered-By -X-Powered-By
-Via -Via
-Date
-Content-Disposition
defer defer
} }
@@ -14,11 +12,13 @@
path *.css *.js path *.css *.js
} }
handle @static { handle @static {
header Cache-Control "public, max-age=3600, immutable" header {
-ETag Cache-Control "public, max-age=31536000, immutable"
-Content-Disposition -ETag
-Last-Modified -Content-Disposition
defer -Last-Modified
defer
}
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT} reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
} }
@@ -26,9 +26,11 @@
path /api/* path /api/*
} }
handle @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} reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
defer
} }
encode gzip zstd encode gzip zstd