Project

General

Profile

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

Takashi Kato, 2022-09-11 23:35

View differences:

config/application.rb
65 65
    # Add forgery protection
66 66
    config.action_controller.default_protect_from_forgery = true
67 67

  
68
    # Automatically set Link header for each stylesheet and script
69
    config.action_view.preload_links_header = true
70

  
68 71
    # Sets the Content-Length header on responses with fixed-length bodies
69 72
    config.middleware.insert_before Rack::Sendfile, Rack::ContentLength
70 73

  
(1-1/2)