preload_link_headers.rb 392 B

12345678910
  1. # frozen_string_literal: true
  2. # Since Rails 6.1, ActionView adds preload links for javascript files
  3. # in the Links header per default.
  4. # In our case, that will bloat headers too much and potentially cause
  5. # issues with reverse proxies. Furthermore, we don't need those links,
  6. # as we already output them as HTML link tags.
  7. Rails.application.config.action_view.preload_links_header = false