diff --git a/static/Caddyfile b/static/Caddyfile index 15281d8..c485f50 100644 --- a/static/Caddyfile +++ b/static/Caddyfile @@ -45,5 +45,13 @@ http://static-mat-services.fly.dev/ { upgrade-insecure-requests; sandbox allow-same-origin allow-popups" } + + # caching + route { + header /style/* Cache-Control max-age=31536000, immutable + header /image/* Cache-Control max-age=31536000, immutable + header /font/* Cache-Control max-age=31536000, immutable + header Cache-Control max-age=180 + } }