aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/asset_pipeline.md
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2015-04-14 13:48:21 -0300
committerAndrey Nering <andrey.nering@gmail.com>2015-04-14 14:01:00 -0300
commitf1c2937ce5c24954d1a1845a3945d1913d24b583 (patch)
treeb37fd4d03bc7e32e7cba18d1a52372d9faaf78f4 /guides/source/asset_pipeline.md
parentdb8897c2de254f542a108144951bcc6a142236f7 (diff)
downloadrails-f1c2937ce5c24954d1a1845a3945d1913d24b583.tar.gz
rails-f1c2937ce5c24954d1a1845a3945d1913d24b583.tar.bz2
rails-f1c2937ce5c24954d1a1845a3945d1913d24b583.zip
Removing GZip section since Sprockets 3.0 no longer create .gz files [ci skip]
- https://github.com/rails/sprockets/commit/14b3b2eddac4699c64c051888e3801732b9a4418 - https://github.com/rails/sprockets/issues/26
Diffstat (limited to 'guides/source/asset_pipeline.md')
-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.