diff --git a/Caddyfile b/Caddyfile index 73fb21ab3..202d5b13c 100644 --- a/Caddyfile +++ b/Caddyfile @@ -5,12 +5,18 @@ :80 { @proxied path /api/* /docs /openapi.json + + @static { + file + path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.webp + } encode gzip zstd uri strip_suffix / # Handles Recipe Images / Assets handle_path /api/media/recipes/* { + header @static Cache-Control max-age=5184000 root * /app/data/recipes/ file_server }