mirror of https://github.com/penpot/penpot.git
✨ Set explicit no-buffering for sse responses
This commit is contained in:
parent
01ef55e4f4
commit
b72704e54b
|
|
@ -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}]
|
||||
|
|
|
|||
|
|
@ -118,7 +118,6 @@ http {
|
|||
|
||||
location /api {
|
||||
proxy_pass http://127.0.0.1:6060/api;
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue