4 ms·
There's also the 'spdy' module for http2 despite the name. It's what express.js supports for HTTP/2. [1]: https://github.com/expressjs/express/issues/2364 http
by tannhaeuser 9y ago
There's also the 'spdy' module for http2 despite the name. It's what express.js supports for HTTP/2.
[1]: https://github.com/expressjs/express/issues/2364 https://github.com/expressjs/express/issues/2364
- gbuk2013 9y agoI tried that before but it is very slow compared to native https module [1] In the end though I added Nginx to my app container to be an HTTPS2 proxy and to serve static files instead - much better performance :) [1] https://github.com/spdy-http2/node-spdy/issues/304 https://github.com/spdy-http2/node-spdy/issues/304
- tannhaeuser 9y agoYes, but that kind of setup doesn't give you HTTP/2 server push so gives you hardly any benefit over HTTP/1.1, does it?
- gbuk2013 9y agoI was interested in multiplexing and I got that, as well as a big increase in performance serving static content.
- spankalee 9y agoYou can push by sending Link/preload headers, which will be turned into requests by the proxy.
- coldtea 9y agoPush is hardly the biggest benefit of HTTP/2 over HTTP/1.