config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=31536000',
# You need to enable this (or set it to your domain) for fonts to work
'Access-Control-Allow-Origin' => '*'
}
if ENV['ASSET_HOST'].present?
config.action_controller.asset_host = ENV['ASSET_HOST'] # 'https://cdn.example.com'
end
From us to your inbox weekly.