Skip to content
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

Make it possible to opt-out of sending Link header in preload_link_tag #51441

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Mar 28, 2024

  1. 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 rails#51436
    stanhu committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    6578fbf View commit details
    Browse the repository at this point in the history