Speed Up Serving Static Assets on Rails 4.2.5

Background

I am using Moonshine plugin to manage this site on Linode instance.

Steps

Step 1

plugger install git://github.com/railsmachine/moonshine_xsendfile.git

Step 2

In application_manifest.rb:

configure :xsendfile => {:x_send_file_path => rails_root}
recipe :xsendfile

Step 3

In production.rb:

config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache

Here is test performance report using GTmetrix.

GTmetrix


Related Articles