fix(deploy): prevent Caddy compression from buffering SSE

Replace the broad text response matcher with an explicit non-SSE MIME allowlist. Document proxy behavior and enforce the canonical Caddy compression policy in CI.
This commit is contained in:
BayinForge committed 2026-07-23 07:40:54 +08:00
1 parent 63cef60594
commit c81191b46a
4 files changed
+104 -4

No files matched your search

+8 -1
View File
@@ -67,7 +67,14 @@ api.sub2api.com {
gzip 6
minimum_length 256
match {
header Content-Type text/*
# 不使用 text/*,否则 text/event-stream 会被压缩并缓冲到流结束
header Content-Type text/css*
header Content-Type text/csv*
header Content-Type text/html*
header Content-Type text/javascript*
header Content-Type text/markdown*
header Content-Type text/plain*
header Content-Type text/xml*
header Content-Type application/json*
header Content-Type application/javascript*
header Content-Type application/xml*