diff options
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 |