Rails 发出警告:“Rack::File headers 参数在 Rack 1.5 之后替换了 cache_control" [英] Rails emits warning: "Rack::File headers parameter replaces cache_control after Rack 1.5"
本文介绍了Rails 发出警告:“Rack::File headers 参数在 Rack 1.5 之后替换了 cache_control"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近将 Rails 升级到 v3.2.服务器启动并工作,但我注意到以下警告:
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.
在我的 development.rb 中,我有以下缓存控制配置:
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?
推荐答案
警告是 由从 Rails 内部调用.该警告已在 Rails 3.2.13.
The warning is caused by a call from within Rails itself. The warning has been fixed in Rails 3.2.13.
这篇关于Rails 发出警告:“Rack::File headers 参数在 Rack 1.5 之后替换了 cache_control"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文