Permalink
Browse files

fastly asset host

  • Loading branch information...
1 parent 2bd87a5 commit 27fedf654f7b6237b338a3e696cd2d52d3bc312e @jacobo jacobo committed Apr 6, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 config/environments/production.rb
@@ -12,6 +12,10 @@
# Specifies the header that your server uses for sending files
config.action_dispatch.x_sendfile_header = "X-Sendfile"
+ config.action_controller.asset_host = EY::Config.get(:fastly, "FASTLY_CDN_URL")
+ config.static_cache_control = "public, max-age=2592000"
+ config.assets.digest = true
+
# For nginx:
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'

0 comments on commit 27fedf6

Please sign in to comment.