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 /guides/source | |
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 'guides/source')
-rw-r--r-- | guides/source/asset_pipeline.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 64f5a9f68c..7752c36926 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -1029,7 +1029,9 @@ value is set to seconds with a maximum possible value of `31536000` which is one year. You can do this in your rails application by setting ``` -config.static_cache_control = "public, max-age=31536000" +config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=31536000' +} ``` Now when your application serves an asset in production, the CDN will store the |