Patch #37664 » 0001-Preload-all-stylesheets-and-JavaScripts.patch
| 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
|
||