title: Failing to serve static assets via Cloudfront/EGDE addon
body: <p>I've been trying to get all my static assets to be served via the <a href="https://elements.heroku.com/addons/edge" rel="nofollow noreferrer">EDGE</a> add-on available on Heroku. I've added the following lines to my <strong>production.rb</strong> file</p>
  
  <pre><code>config.serve_static_assets = true
  config.static_cache_control = "public, max age=2592000"
  config.action_controller.asset_host = ENV["https://1a2b3c4d.cloudfront.net"]
  </code></pre>
  
  <p>But it seems that is not enough. When I inspect my assets they are stilled served via the assets folder. On Herokus guide on EDGE it states that adding <code>config.action_controller.asset_host = ENV["https://1a2b3c4d.cloudfront.net"]</code>
   should do it.</p>
  
  <p>I suspect there is something else I need to add or that there is something else in my <strong>production.rb</strong> that prevents the assets to be served via EDGE but I don't know what that cloud be.</p>
  
  <p>My <strong>production.rb</strong> as a whole</p>
  
  <pre><code>config.cache_classes = true
  config.eager_load = true
  config.consider_all_requests_local       = false
  config.action_controller.perform_caching = true
  config.assets.js_compressor = Uglifier.new(harmony: true)
  config.assets.compile = false
  config.active_storage.service = :local
  config.force_ssl = true
  config.log_level = :debug
  config.log_tags = [:request_id]
  config.action_mailer.perform_caching = false
  config.i18n.fallbacks = true
  config.active_support.deprecation = :notify
  config.log_formatter = ::Logger::Formatter.new
  config.active_record.dump_schema_after_migration = false
  config.serve_static_assets = true
  config.static_cache_control = "public, max age=2592000"
  config.action_controller.asset_host = ENV["https://1a2b3c4d.cloudfront.net"]
  </code></pre>
  
  <p>Running on rails 5.2.1 and ruby 2.5.1</p>
  
  <p>Edit #1 - I restated the Heroku application when I deployed the new code.</p>