Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
header_up Host {host}
}

# Compress responses. Skip for /openapi.json since it's already
# small and aggressive compression on JSON adds a few ms.
# Compress responses. Applies to everything Caddy serves — the
# JSON payloads in this API are mostly small list bodies where
# gzip's wins still beat the negligible CPU cost, and /openapi.json
# is rare enough not to matter. (An earlier comment here implied
# we skipped /openapi.json; the config never actually did that.)
encode gzip

# Structured access logs to stdout in JSON. Matches the app's
Expand Down