Skip to content
This repository
Browse code

Edited railties/guides/source/asset_pipeline.textile via GitHub

  • Loading branch information...
commit 837a74bc0f232c225b146c23fa706264e8473371 1 parent 7f91eeb
Mohammad El-Abid TheEmpty authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/guides/source/asset_pipeline.textile
2  railties/guides/source/asset_pipeline.textile
Source Rendered
@@ -94,7 +94,7 @@ h4. Compressing Assets
94 94
95 95 The default Gemfile also includes the "uglifier": gem. This gem wraps "UglifierJS": (written for NodeJS) in Ruby. It compress your code by removing white spaces and other magical things like changing your if and else statements to ternary operators when possible.
96 96
97   -Sprockets also turns on "Gzip": (.gz) when possible (by checking the user's headers). Gzip is a file compression technique, much like the ever so popular "zip" file, except it's more open source friendly. Gzip should not modify the contents of the file, but simply the size of the file.
  97 +Sprockets also creates a "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}
98 98
99 99 h4. Adding Assets to Your Gems
100 100

0 comments on commit 837a74b

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