TIL[1] that if you're doing Server-Sent Events from #Django as a StreamingHttpRe...

@decibyte@social.data.coop

TIL[1] that if you're doing Server-Sent Events from #Django as a StreamingHttpResponse, and #nginx is in front of the application, you need to make sure that the response is not buffered if you want things to not be, well, buffered and potentially delayed.

Buffering can be turned off completely, or disabled for a specific response via a header: nginx.org/en/docs/http/ngx_htt

[1] Well, I'm learning a lot today, modern CSS is a blast!