Rails emits warning: "Rack::File headers parameter replaces cache_control after Rack 1.5"

alexs333 picture alexs333 · Jan 8, 2013 · Viewed 9.6k times · Source

I've recently upgraded my Rails to v3.2. The server starts and works, however I'm noticing the following warning:

Rack::File headers parameter replaces cache_control after Rack 1.5.

In my development.rb I have the following configuration for cache control:

config.static_cache_control = "public, max-age=36000"

What does the warning mean and what should I do to address it?

Answer

benilov picture benilov · Jan 9, 2013

The warning is caused by a call from within Rails itself. The warning has been fixed in Rails 3.2.13.