4 ms·
I was just about a month ago trying to figure out if Rails and HTTP/2 could work together; and it seems this is about the only answer out there currently (or di
by tibbon 8y ago
I was just about a month ago trying to figure out if Rails and HTTP/2 could work together; and it seems this is about the only answer out there currently (or did I miss one?)
- matt4077 8y agoWell, you missed the obvious one: Puma Writeup: http://eileencodes.com/posts/http2-early-hints/ http://eileencodes.com/posts/http2-early-hints/ PR: https://github.com/puma/puma/pull/1403 https://github.com/puma/puma/pull/1403
- ioquatix 8y agoThis is a long way from native bi-directional HTTP/2.
- dreamer_soul 8y agoI'm about to ask the same question, I have a rails app and would love for the assets to be served by HTTP/2
- lixtra 8y agoDon’t you have an nginx/Apache in front? If you tell it to serve HTTP/2 don’t you already get 95% of the benefits? EDIT: e.g. bottom of https://www.speedshop.co/2016/01/07/what-http2-means-for-ruby-developers.html https://www.speedshop.co/2016/01/07/what-http2-means-for-rub...
- ioquatix 8y agoIt's nice to directly/natively serve HTTP/2 web apps, because it simplifies development and production environments. Sometimes best practice for HTTP/1 becomes anti-pattern for HTTP/2. Some of these issues are discussed here: https://www.codeotaku.com/journal/2018-10/http-2-for-ruby-web-development/index https://www.codeotaku.com/journal/2018-10/http-2-for-ruby-we...