Skip to content

Commit

Permalink
feat(API): Adds HTTP headers indicating SSE content to proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
gremid committed Dec 18, 2024
1 parent 8fe62ed commit 4b7c6b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dwds/livestream/server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@

(defn handle-stream
[stream-generator content-type req]
(-> (resp/response (stream-generator req)) (resp/content-type content-type)))
(-> (resp/response (stream-generator req))
(resp/content-type content-type)
(resp/header "Cache-Control" "no-cache")
(resp/header "X-Accel-Buffering" "no")))

(defn stream-handler
[k generator content-type]
Expand Down

0 comments on commit 4b7c6b2

Please sign in to comment.