diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-04-29 22:39:00 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-04-29 22:53:59 +0530 |
commit | 4a5bef22dac5fe9fad58065006a231746d73689f (patch) | |
tree | 84837c660c230cda5c19c3a08cc371e0a74f3e50 /guides/source/asset_pipeline.md | |
parent | f0a6cce78eacec932111f726cec95bb1f42a4644 (diff) | |
download | rails-4a5bef22dac5fe9fad58065006a231746d73689f.tar.gz rails-4a5bef22dac5fe9fad58065006a231746d73689f.tar.bz2 rails-4a5bef22dac5fe9fad58065006a231746d73689f.zip |
Document config.assets.gzip flag. Follow up of https://github.com/rails/sprockets-rails/pull/342.
[ci skip]
Diffstat (limited to 'guides/source/asset_pipeline.md')
-rw-r--r-- | guides/source/asset_pipeline.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index cc3da47db9..bb04e5e94c 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -1111,6 +1111,17 @@ effect on the application. Instead, setting `config.assets.css_compressor` and `config.assets.js_compressor` will control compression of CSS and JavaScript assets. + +### Serving GZipped version of assets + +By default, gzipped version of compiled assets will be generated, along +with the non-gzipped version of assets. Gzipped assets help reduce, the transmission of +date over the wire. You can configure this by setting the `gzip` flag. + +```ruby +config.assets.gzip = false # disable gzipped assets generation +``` + ### Using Your Own Compressor The compressor config settings for CSS and JavaScript also take any object. |