aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-14 13:02:46 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-14 13:02:46 -0400
commit4c665b8deddb32e6af886d1129ef2844c69c5a1f (patch)
tree3dc4ed49f1033b45052ab804fb28cd123a64798e /guides/source
parentb4a9c59a47dd619ea0d446e47edde14b3740e483 (diff)
parentf1c2937ce5c24954d1a1845a3945d1913d24b583 (diff)
downloadrails-4c665b8deddb32e6af886d1129ef2844c69c5a1f.tar.gz
rails-4c665b8deddb32e6af886d1129ef2844c69c5a1f.tar.bz2
rails-4c665b8deddb32e6af886d1129ef2844c69c5a1f.zip
Merge pull request #19758 from andreynering/remove-gzip-doc
Removing GZip section since Sprockets 3.0 no longer create .gz files
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/asset_pipeline.md35
1 files changed, 0 insertions, 35 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md
index 9da0ef1eb3..d9dfd85860 100644
--- a/guides/source/asset_pipeline.md
+++ b/guides/source/asset_pipeline.md
@@ -790,41 +790,6 @@ location ~ ^/assets/ {
}
```
-#### GZip Compression
-
-When files are precompiled, Sprockets also creates a
-[gzipped](http://en.wikipedia.org/wiki/Gzip) (.gz) version of your assets. Web
-servers are typically configured to use a moderate compression ratio as a
-compromise, but since precompilation happens once, Sprockets uses the maximum
-compression ratio, thus reducing the size of the data transfer to the minimum.
-On the other hand, web servers can be configured to serve compressed content
-directly from disk, rather than deflating non-compressed files themselves.
-
-NGINX is able to do this automatically enabling `gzip_static`:
-
-```nginx
-location ~ ^/(assets)/ {
- root /path/to/public;
- gzip_static on; # to serve pre-gzipped version
- expires max;
- add_header Cache-Control public;
-}
-```
-
-This directive is available if the core module that provides this feature was
-compiled with the web server. Ubuntu/Debian packages, even `nginx-light`, have
-the module compiled. Otherwise, you may need to perform a manual compilation:
-
-```bash
-./configure --with-http_gzip_static_module
-```
-
-If you're compiling NGINX with Phusion Passenger you'll need to pass that option
-when prompted.
-
-A robust configuration for Apache is possible but tricky; please Google around.
-(Or help update this Guide if you have a good configuration example for Apache.)
-
### Local Precompilation
There are several reasons why you might want to precompile your assets locally.