Skip to content

Commit

Permalink
added comma
Browse files Browse the repository at this point in the history
  • Loading branch information
rpq committed Nov 16, 2011
1 parent df08273 commit bc00514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/asset_pipeline.textile
Expand Up @@ -438,7 +438,7 @@ location ~ ^/assets/ {
} }
</plain> </plain>


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. 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 is able to do this automatically enabling +gzip_static+:


Expand Down

0 comments on commit bc00514

Please sign in to comment.