Browse files

Revert "added details to section 4.1.2 of the Asset Pipeline guide, d…

…escribing how to configure Apache to serve the gzipped version of the precompiled assets"

This reverts commit aec466e.

Reason: We're not sure about the correctness and won't want to document
something like this with doubts.
  • Loading branch information...
1 parent 9027ce9 commit a24ef8611d19bce9c98aa21ee59d9dd0a08ecec5 @vijaydev vijaydev committed Apr 11, 2013
Showing with 1 addition and 29 deletions.
  1. +1 −29 guides/source/
30 guides/source/
@@ -547,35 +547,7 @@ This directive is available if the core module that provides this feature was co
If you're compiling nginx with Phusion Passenger you'll need to pass that option when prompted.
-Apache is also able to serve the [gzipped]( version of your assets; however, it requires a bit more work:
-<LocationMatch "^/assets/.*$">
- Header unset ETag
- FileETag None
- # RFC says only cache for 1 year
- ExpiresActive On
- ExpiresDefault "access plus 1 year"
- RewriteEngine On
- RewriteCond %{HTTP:Accept-Encoding} gzip
- RewriteCond %{HTTP_USER_AGENT} !Konqueror
- RewriteCond %{REQUEST_FILENAME}.gz -f
- RewriteRule ^(.+).(css|js)$ $1.$2.gz [QSA,L]
-<FilesMatch \.css\.gz>
- ForceType text/css
-<FilesMatch \.js\.gz>
- ForceType application/javascript
-AddEncoding gzip .gz
-NOTE: You will need to make sure `mod_headers`, `mod_mime` and `mod_rewrite` are loaded; otherwise, the above configuration will fail.
+A robust configuration for Apache is possible but tricky; please Google around. (Or help update this Guide if you have a good example configuration for Apache.)
### Local Precompilation

0 comments on commit a24ef86

Please sign in to comment.