使用空的Rails应用我默认将Cache-Control
设置为max-age=0, private, must-revalidate
。
我想更好地理解这个过程,所以我试图检测完成这项工作的代码。
我已检查actionpack
,rake middleware
,config.action_dispatch.default_headers
,initializers and envinronment configs
。
我使用Rails 4.2,nginx作为Web服务器,使用Passenger作为应用程序服务器。
这可能是一些机架中间件或应用程序服务器本身。