From d3c338b02fcb453cfdd3ab204919eb487ba9e84b Mon Sep 17 00:00:00 2001 From: Takashi Kato Date: Sun, 11 Sep 2022 20:41:13 +0000 Subject: [PATCH] Preload all stylesheets and JavaScripts --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 0a2d2f1fc..4d10be6dc 100644 --- a/config/application.rb +++ b/config/application.rb @@ -65,6 +65,9 @@ module RedmineApp # Add forgery protection config.action_controller.default_protect_from_forgery = true + # Automatically set Link header for each stylesheet and script + config.action_view.preload_links_header = true + # Sets the Content-Length header on responses with fixed-length bodies config.middleware.insert_before Rack::Sendfile, Rack::ContentLength -- 2.30.2