Project

General

Profile

Patch #37664 » 0001-Preload-all-stylesheets-and-JavaScripts.patch

Takashi Kato, 2022-09-11 23:35

View differences:

config/application.rb
# 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
(1-1/2)