on master help sign in
Document headers required for SSE through Nginx
commitd7ea4798340dba9a60bf20b3e5427655eccda5eb authorMikkel Christiansen <mikkel@rheosystems.com> dateThu 20 Jul 2017, 14:32 (9 years ago) parent196238f
1 file changed+5
wai-extra/Network/Wai/EventSource.hs+5
wai-extra/Network/Wai/EventSource.hs+5
@@ -1,5 +1,10 @@
11{-|
22 A WAI adapter to the HTML5 Server-Sent Events API.
3+
4+ If running through a proxy like Nginx you might need to add the
5+ headers:
6+
7+ > [ ("X-Accel-Buffering", "no"), ("Cache-Control", "no-cache")]
38-}
49module Network.Wai.EventSource (
510 ServerEvent(..),