title: Why Heroku don't use the good manifest.yml
body: <p>I use Rails 3.2.2 on Heroku with CDN (CloudFront) to host assets.</p>
  
  <p>I try the Heroku tutorial (https://devcenter.heroku.com/articles/cdn-asset-host-rails31) with asset_sync gem.</p>
  
  <p>There is no problem with the assets:precompile, all my assets are hosted on my S3 bucket. </p>
  
  <pre>
  -->heroku run bundle exec rake assets:precompile                                                                                                                                                            
      Running bundle exec rake assets:precompile attached to terminal... up, run.1
      AssetSync: using default configuration from built-in initializer
      AssetSync: Syncing.
      Using: Manifest /app/public/assets/manifest.yml
      Uploading: assets/facebook_64-8cdc90984860efef829203e1e01aab10.png
      Uploading: assets/google_64-11634a6b4a219799449e7a7157f73387.png
      Uploading: assets/twitter_64-657ee379209d0bb998440421b499a6a2.png
      Uploading: assets/application-699d029330a2d095a9b59006a63a7b01.js
      Uploading: assets/application-2060c0efc074ae11265455479abfb6ff.css
      Uploading: assets/back_office-ccfdd79c9b296176087815c95607f540.css
      AssetSync: Done.
  </pre>
  
  <p>The problem is that Heroku tries to access to a bad CSS files :</p>
  
  <p><code>
  <code>&lt;link href="http://s3.amazonaws.com/annoncestest/assets/application-85cc4376a5de3b224db7c0548a44e7cb.css" media="all" rel="stylesheet" type="text/css" /&gt;</code>
  </code></p>
  
  <p>As you can see the MD5 for application CSS is not the same.</p>
  
  <p>However there is no problem with JS files or other assets which are not CSS files.</p>
  
  <p>On my bucket the manifest.yml refer to the good file <code>application-2060c0efc074ae11265455479abfb6ff.css</code>
  but Heroku always tries to access to <code>application-85cc4376a5de3b224db7c0548a44e7cb.css</code></p>
  
  <p>I tried to set the manifest path in my production.rb with :</p>
  
  <p><code>config.assets.manifest = "http://myapp.cloudfront.net/assets"</code>
  or 
  <code>config.assets.manifest = "http://myapp.cloudfront.net/assets/manifest.yml"</code></p>
  
  <p>Everytime css files are bad.</p>
  
  <p>I have no idea what's the problem. Any idea?</p>