Set explicit no-buffering for sse responses

This commit is contained in:
Andrey Antukh
2025-09-30 12:18:19 +02:00
parent 01ef55e4f4
commit b72704e54b
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,8 @@
(def default-headers
{"Content-Type" "text/event-stream;charset=UTF-8"
"Cache-Control" "no-cache, no-store, max-age=0, must-revalidate"
"Pragma" "no-cache"})
"Pragma" "no-cache"
"X-Accel-Buffering" "no"})
(defn response
[handler & {:keys [buf] :or {buf 32} :as opts}]

View File

@@ -118,7 +118,6 @@ http {
location /api {
proxy_pass http://127.0.0.1:6060/api;
proxy_buffering off;
proxy_http_version 1.1;
}