Rails 5.2 HTTP2 Early Hint nopush support

103 views
Skip to first unread message

Ho Kuen Leung

unread,
Mar 20, 2018, 11:58:38 PM3/20/18
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:

This is necessary since there are servers with HTTP2 push support for early hints like Nginx

Ho Kuen Leung

unread,
Mar 21, 2018, 2:27:27 AM3/21/18
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