aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-10-06 16:22:40 +0200
committerXavier Noria <fxn@hashref.com>2011-10-06 16:23:56 +0200
commit9d091c038d5e3d35be09fbd0fd1603e3a4035ac2 (patch)
tree7e4da2ffa80203226be19dcf30a675acbd096be3 /railties/guides
parent89623e994685159328990bbe2db788a21f72af69 (diff)
downloadrails-9d091c038d5e3d35be09fbd0fd1603e3a4035ac2.tar.gz
rails-9d091c038d5e3d35be09fbd0fd1603e3a4035ac2.tar.bz2
rails-9d091c038d5e3d35be09fbd0fd1603e3a4035ac2.zip
revises the precompilation section of the asset pipeline guide (web server configuration for gzipped assets pending)
Diffstat (limited to 'railties/guides')
-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 7795b297f3..7c79b202f1 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -398,7 +398,7 @@ This can be changed with the +config.assets.manifest+ option. A fully specified
config.assets.manifest = '/path/to/some/other/location'
</erb>
-NOTE: If there are missing precompiled files in production you will get an <tt>AssetNoPrecompiledError</tt> exception indicating the name of the missing file(s).
+NOTE: If there are missing precompiled files in production you will get an <tt>Sprockets::Helpers::RailsHelper:: AssetPaths::AssetNotPrecompiledError</tt> exception indicating the name of the missing file(s).
h5. Server Configuration
@@ -436,9 +436,9 @@ location ~ ^/assets/ {
}
</plain>
-When files are precompiled, Sprockets also creates a "Gzip":http://en.wikipedia.org/wiki/Gzip (.gz) version of your assets. This avoids the server having to do this for any requests; it can simply read the compressed files from disk. 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 configuration options can be used:
+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. One the other hand, web servers can be configured to serve compressed content directly from disk, rather than deflating non-compressed files themselves.
-For Apache:
+A possible configuration for Apache could be:
<plain>
<LocationMatch "^/assets/.*$">