Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to opt-out of sending Link header in
preload_link_tag
This commit adds a `preload_links_header` option to `preload_link_tag` to disable sending of the Link header in the HTTP response. Currently `ActionView::Helpers::AssetTagHelper.preload_links_header` only controls whether `javascript_include_tag` and `stylesheet_link_tag` send the Link header, but there is no way to control the behavior of `preload_link_tag`. We could just check that variable, but existing applications might be relying on `preload_link_tag` to add the header. Users also might want control over this on a per call basis. Closes #51436
- Loading branch information