4 ms·
It doesn't include appengine, but it enables appengine flex to one day support it. Also FYI Appengine Flex does support HTTP2 Server Push. You just got to do
by cobookman 10y ago
It doesn't include appengine, but it enables appengine flex to one day support it.
Also FYI Appengine Flex does support HTTP2 Server Push.
You just got to do the following:
Set Headers to:
Content-Type: text/event-stream
Cache-Control: no-cache
Connection: keep-alive
// https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/#x-accel-buffering https://www.nginx.com/resources/wiki/start/topics/examples/x...
X-Accel-Buffering: no
And use your favorite http2 server push framework.
- luhn 10y agoWhat you showed in your example is Server-Sent Events, not HTTP2 Server Push.
- spullara 10y agoIt does work really well but is unsupported on IE.
- jahewson 10y agoSever push is really a different use case from web sockets. It's also an optional part of the HTTP/2 protocol, no guarantee of client support. Also SSE has been around for a decade or so, not to be confused with HTTP/2 push.
- 19eightyfour 10y agoThis is really useful, thanks to provide this.