Skip to content

Instantly share code, notes, and snippets.

@mmay
Last active August 29, 2015 14:07
Show Gist options
  • Save mmay/5eaa4d3c2fb942f3d000 to your computer and use it in GitHub Desktop.
Save mmay/5eaa4d3c2fb942f3d000 to your computer and use it in GitHub Desktop.
asset caching config
# config/environments/production.rb
config.serve_static_assets = false
config.assets.compress = true
config.assets.digest = true
config.action_controller.asset_host = ENV['FASTLY_CDN_URL']
config.static_cache_control = 'public, s-maxage=15552000, maxage=2592000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment