PNG Files not loading after deploy on Heroku!
I am deploying a project on Heroku, and all assets run perfectly, including images (jpgs, jpegs and gifs), but PNG files are not load! In general pages showing:
GET damainname.com/assets/namespace/my_image-867450b295e2051d381123c16c51548e.png 404 (Not Found)
Other image file extensions (JPG, JPEG and GIF) load normally.
I am using:
- Heroku cedar (testing with and without assets:precompile locally)
- ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
- Rails 3.2.11
production.rb:
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
config.serve_static_assets = true
config.assets.compress = true
config.assets.compile = false
config.assets.digest = true
application.rb:
config.assets.precompile += ['application.css', 'application.js', 'admin.css', 'admin.js']
config.assets.precompile += %w[*.png *.jpg *.jpeg *.gif]
config.assets.initialize_on_precompile = false