Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Core
Conversations
About
Send feedback
Help
Rails 5.2 HTTP2 Early Hint nopush support
111 views
Skip to first unread message
Ho Kuen Leung
unread,
Mar 20, 2018, 11:58:38 PM
3/20/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Core
HTTP2 Early Hint support is added and will be released in 5.2
https://github.com/rails/rails/pull/30744
However there is no way to specify `nopush` in early hints when using javascript_include_tag / stylesheet_link_tag
Preload spec:
https://w3c.github.io/preload/?lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BwzEEHZvqToaWD2HAfSuSAw%3D%3D#server-push-http-2
This is necessary since there are servers with HTTP2 push support for early hints like Nginx
http://nginx.org/en/docs/http/ngx_http_v2_module.html#http2_push_preload
Ho Kuen Leung
unread,
Mar 21, 2018, 2:27:27 AM
3/21/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Core
Also for fonts / JS, the current helpers does not support adding `crossorigin` attribute
5.2.x helper source:
https://github.com/rails/rails/blob/5-2-stable/actionview/lib/action_view/helpers/asset_tag_helper.rb
Reply all
Reply to author
Forward
0 new messages