diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-05 21:27:29 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-05 21:27:29 +0100 |
commit | c453f9cdb0b485a7f9c7df90d353756e4d5e8ff3 (patch) | |
tree | 6bcd696e92343cc62165d2f90fe31c61eaa2d841 /railties | |
parent | 9cec43ca913af3ce5723c3c1036c2c0ee385a989 (diff) | |
download | rails-c453f9cdb0b485a7f9c7df90d353756e4d5e8ff3.tar.gz rails-c453f9cdb0b485a7f9c7df90d353756e4d5e8ff3.tar.bz2 rails-c453f9cdb0b485a7f9c7df90d353756e4d5e8ff3.zip |
[ci skip] Remove final mentions of `static_cache_control` in docs.
It was deprecated in https://github.com/rails/rails/pull/19135.
We're now favoring `public_file_server.headers`.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt index e29f0bacaa..4dd20a9d2e 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt @@ -15,8 +15,10 @@ Rails.application.configure do # Enable/disable caching. By default caching is disabled. if Rails.root.join('tmp/caching-dev.txt').exist? config.action_controller.perform_caching = true - config.static_cache_control = "public, max-age=172800" config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } else config.action_controller.perform_caching = false config.cache_store = :null_store |