-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP 103 Early Hints #52
Comments
Not planned yet. There is nothing stopping an application from returning a 103 though. How would you envision the use case? |
The use-case I envision is a Rack application that plans to include some CSS and JS via I can't find anything official in the Rack repository, but there's some support across Ruby projects that I've linked to below, as well as the RFC. The Puma PR may be the most interesting.
I think the biggest difference between real early hints and just returning a 103 is that a single request would produce 2 responses: one 103 with early hints |
Okay, its a feature that might go into the rack spec in the future. Lets leave this issue open for now and time permitting and a bit more research into rack plans and then it will get done. |
Sounds good, thank you! |
We are currently using nginx with the http2_push_preload directive. This will turn Link headers into push promises. This is a much simpler and more compatible mechanism than sending a 103 IMO http://nginx.org/en/docs/http/ngx_http_v2_module.html#http2_push_preload |
@ianks that's really cool, thanks for the info! I didn't even know Nginx could do that to be honest. I don't have direct access to the reverse proxy's configuration file so I can't do that myself, but it's definitely good to know. |
Highly suggest it. Much easier to setup than h2o |
Please try the |
Merged into develop branch. |
How do I enable early hints for agoo? I am trying to use agoo with Hanami 2.0. Hanami has instructions for this at https://guides.hanamirb.org/v1.3/projects/http2-early-hints/ |
Agoo::Server::rack_early_hints(true) Take a look at the test/early_hints_test.rb file. |
Just curious if support for early hints is planned?
The text was updated successfully, but these errors were encountered: