rails/rails — Issue #3583: Rack::ConditionalGet enabled in development mode / does not respect perform_caching
Author: leehambley
Created: 2011-11-09 14:59:13+00:00
State: open

This is not so much a "bug" as an oversight/mis-feature.

The Rack::ConditionalGet middleware is (mistakenly, I believe) loaded in the development environment (At least on Rails 3.1.x, and I suspect older).

This leads to unexpected behaviour when developing locally.

This can be easily fixed with:

config.middleware.delete(Rack::ConditionalGet)

Inside of the `./config/environments/development.rb` file.