Skip to main content

Join GoRails to continue learning

Subscribe to GoRails to get access to this episode and all other pro episodes, and access to our private Slack community of Ruby and Rails devs.

Subscribe to watch

Login to your account

Rails Performance Techniques:

Amazon Cloudfront CDN for Rails Asset Pipeline & Webpacker

13

Episode 301 · June 25, 2019

A CDN can distribute assets globally and allow more parallel downloads. This equates to performance benefits for users anywhere in the world

Performance Webpacker


Resources

# config/environments/production.rb
  config.action_controller.asset_host = "abcdefg1234567890.cloudfront.net"

  # Optional, must use if you're serving from something other than 0.0.0.0, ::, or localhost
  config.hosts << "example.com"
Transcripts

No transcripts available. Earn a free month

Loading...

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.