Yes, it seems to be a mistake (or not?). When the assets were precompiled with:
RAILS_ENV=production bin/rake assets:precompile
and config/environments/development.rb :
config.assets.digest = true
since it is true by default there, in Rails 4.2 ( Release Notes , Pull Request ), you will get this error in the development environment, no matter which server you use (I get it on both WEBrick and Thin). As I understand it, it tries to get precompiled assets from /public/assets , but fails due to
Content-Type header found in answer 304 not allowed
or something like that.
This can be avoided by clearing /public/assets every time you start development with:
bin/rake assets:clobber
or by disabling resource digests in the configuration configuration:
config.assets.digest = false
or disabling static assets working in configuration configuration:
config.assets.digest = true config.serve_static_assets = false
gpchelkin
source share