aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammad Typaldos <mohammad.elabid@gmail.com>2011-07-03 07:13:20 -0700
committerMohammad Typaldos <mohammad.elabid@gmail.com>2011-07-03 07:13:20 -0700
commit47139b8cb6275aa8bd791df221060cbf872e9e18 (patch)
tree3decf24da691a55678888555b0bc2eff3c810976
parentcaab9f4e95bff87c3208084271d70583bc31930e (diff)
downloadrails-47139b8cb6275aa8bd791df221060cbf872e9e18.tar.gz
rails-47139b8cb6275aa8bd791df221060cbf872e9e18.tar.bz2
rails-47139b8cb6275aa8bd791df221060cbf872e9e18.zip
Edited railties/guides/source/asset_pipeline.textile via GitHub
-rw-r--r--railties/guides/source/asset_pipeline.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index 19e2d736e0..d2441727ee 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -32,7 +32,7 @@ h4. Main Features
The first is to concatenate of assets. This is important in a production environment to reduce the number of requests that a client browser has to make to render a web page. While Rails already has a feature to concatenate these types of asset--by placing +:cache => true+ at the end of tags such as +javascript_include_tag+ and +stylesheet_link_tag+--, many people do not use it.
-The default behavior in 3.1 + is to concatenate all files into one master file each for JS and CSS, however you can separate files or groups of files if required (see below). In production an MD5 fingerprint is inserted into each filename.
+The default behavior in 3.1 and onward is to concatenate all files into one master file each for JS and CSS, however you can separate files or groups of files if required (see below). In production an MD5 fingerprint is inserted into each filename.
The second feature of the pipeline is to minify or compress. For CSS this usually involves removing whitespace and comments. For Javascript more complex processes can be applied.
@@ -229,8 +229,8 @@ TODO: talk about the +config.assets.precompile+ option and the default matcher f
</erb>
-TODO: Not sure what to do with this:
-Sprockets also creates a "Gzip":http://en.wikipedia.org/wiki/Gzip (.gz) of your assets. This prevents your server from contently compressing your assets for each request. You must configure your server to use GZip compression and serve the compressed assets in {location}. {Give Apache and NGINX examples since those are what's cool}
+Sprockets also creates a "gzip":http://en.wikipedia.org/wiki/Gzip (.gz) of your assets. This prevents your server from contently compressing your assets for each request. You must configure your server to use gzip compression and serve the compressed assets that will be stored in the public/assets folder. The following are some configuration blocks that you can use for common servers.
+NGINX & Apache examples?