mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5226058163
Now ActionDispatch::Static can accept HTTP headers so that developers will have control of returning arbitrary headers like 'Access-Control-Allow-Origin' when a response is delivered. They can be configured through `#config.public_file_server.headers`: config.public_file_server.headers = { "Cache-Control" => "public, max-age=60", "Access-Control-Allow-Origin" => "http://rubyonrails.org" } Also deprecate `config.static_cache_control` in favor of `config.public_file_server.headers`. |
||
---|---|---|
.. | ||
cache_test.rb | ||
cookies_test.rb | ||
exceptions_test.rb | ||
remote_ip_test.rb | ||
sendfile_test.rb | ||
session_test.rb | ||
static_test.rb |