]> git.openstreetmap.org Git - rails.git/commitdiff
Enable link header for asset preloading
authorTom Hughes <tom@compton.nu>
Thu, 13 May 2021 18:57:47 +0000 (19:57 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 13 May 2021 18:57:47 +0000 (19:57 +0100)
config/initializers/new_framework_defaults_6_1.rb

index 0c02a63eb70d77fed9c260d00eb2e17f9be83121..7deb71288319c72446644d268fe49c3d65150e96 100644 (file)
@@ -64,4 +64,4 @@ Rails.application.config.active_record.legacy_connection_handling = false
 
 # Generate a `Link` header that gives a hint to modern browsers about
 # preloading assets when using `javascript_include_tag` and `stylesheet_link_tag`.
-Rails.application.config.action_view.preload_links_header = true
+Rails.application.config.action_view.preload_links_header = true