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 {
Cache-Control "public, max-age=31536000, immutable"
-ETag -ETag
-Content-Disposition -Content-Disposition
-Last-Modified -Last-Modified
defer defer
}
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT} reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
} }
@@ -26,10 +26,12 @@
path /api/* path /api/*
} }
handle @api { handle @api {
header Cache-Control "no-cache, no-store, must-revalidate" header {
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT} Cache-Control "no-cache, no-store, must-revalidate"
defer defer
} }
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
}
encode gzip zstd encode gzip zstd
} }