Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 659
alexs333 Avatar asked Jan 08 '13 01:01

alexs333


1 Answers

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

like image 86
benilov Avatar answered Sep 20 '22 09:09

benilov