From b72704e54b23e72c3b02c005244b238420ecf408 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 30 Sep 2025 12:18:19 +0200 Subject: [PATCH] :sparkles: Set explicit no-buffering for sse responses --- backend/src/app/http/sse.clj | 3 ++- docker/devenv/files/nginx.conf | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/http/sse.clj b/backend/src/app/http/sse.clj index 8d431cc93c..00defbd80e 100644 --- a/backend/src/app/http/sse.clj +++ b/backend/src/app/http/sse.clj @@ -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}] diff --git a/docker/devenv/files/nginx.conf b/docker/devenv/files/nginx.conf index 7b217193d8..45f0dcc6bf 100644 --- a/docker/devenv/files/nginx.conf +++ b/docker/devenv/files/nginx.conf @@ -118,7 +118,6 @@ http { location /api { proxy_pass http://127.0.0.1:6060/api; - proxy_buffering off; proxy_http_version 1.1; }