diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-04 22:07:45 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-04 22:07:45 +0100 |
commit | a3e05f7c819ae7a3c08240f64a76439412d144cf (patch) | |
tree | ec1e58153f4407f9b92e4d0e9d170e26256efae4 /railties | |
parent | 748b2f9cb1ff05a8aab068e2fa802e9f12163e30 (diff) | |
download | rails-a3e05f7c819ae7a3c08240f64a76439412d144cf.tar.gz rails-a3e05f7c819ae7a3c08240f64a76439412d144cf.tar.bz2 rails-a3e05f7c819ae7a3c08240f64a76439412d144cf.zip |
Move `static_cache_contorl` deprecation changelog entry to Railties.
The configuration for `config.static_cache_control`, and its replacement
`config.public_file_server.headers` are implemented in Railties.
People would configure this in environment files, which is Railties domain too.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index f1dec45f02..6980ba94e2 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -16,6 +16,28 @@ *Kasper Timm Hansen* +* Deprecate `config.static_cache_control` in favor of + `config.public_file_server.headers`. + + To upgrade, replace occurrences of: + + ``` + config.static_cache_control = 'public, max-age=60' + ``` + + in your environment files, with: + + ``` + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=60' + } + ``` + + `config.public_file_server.headers` can set arbitrary headers, sent along when + a response is delivered. + + *Yuki Nishijima* + * Route generator should be idempotent running generators several times no longer require you to cleanup routes.rb |