Skip to content
This repository
Browse code

Improve header hierarchy.

  • Loading branch information...
commit 5f92bf1ca0dc48d3657f8a419fcf5a819353744f 1 parent c567718
Joost Baaij authored February 29, 2012
4  railties/guides/source/asset_pipeline.textile
Source Rendered
@@ -456,7 +456,7 @@ config.assets.manifest = '/path/to/some/other/location'
456 456
 
457 457
 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).
458 458
 
459  
-h5. Server Configuration
  459
+h5. Far-future Expires header
460 460
 
461 461
 Precompiled assets exist on the filesystem and are served directly by your web server. They do not have far-future headers by default, so to get the benefit of fingerprinting you'll have to update your server configuration to add them.
462 462
 
@@ -485,6 +485,8 @@ location ~ ^/assets/ {
485 485
 }
486 486
 </plain>
487 487
 
  488
+h5. GZip compression
  489
+
488 490
 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.
489 491
 
490 492
 Nginx is able to do this automatically enabling +gzip_static+:

0 notes on commit 5f92bf1

Please sign in to comment.
Something went wrong with that request. Please try again.