Commit 5cb522c
docs(caddy): drop the misleading "skip /openapi.json" comment (#273)
The Caddyfile's encode block had a comment claiming "Skip for
/openapi.json since it's already small and aggressive compression
on JSON adds a few ms" — but the actual directive is bare
\`encode gzip\` with no path matcher, so /openapi.json gets gzipped
along with everything else.
The phantom skip has been there since the original TLS-reverse-proxy
PR. Replace the misleading reasoning with an accurate note: we
compress everything, the JSON-payload sizes here make that a clear
win, and /openapi.json's CPU cost is negligible at the rate it's
hit. Mention the historical inaccuracy so future readers don't
re-derive the same false conclusion from a stale comment.
Caddy config only; no test impact. 760 still passing.
Co-authored-by: Aaron K. Clark <akclark@thenetwerk.net>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1534eba commit 5cb522c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
0 commit comments