diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2013-04-11 22:12:56 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2013-04-11 22:12:56 +0530 |
commit | a24ef8611d19bce9c98aa21ee59d9dd0a08ecec5 (patch) | |
tree | f9f4bb78fcb7289abf7cd18010b4fbd4bc12520b /guides/source | |
parent | 9027ce9f7edd4300c14a841784354cbe3d8a1258 (diff) | |
download | rails-a24ef8611d19bce9c98aa21ee59d9dd0a08ecec5.tar.gz rails-a24ef8611d19bce9c98aa21ee59d9dd0a08ecec5.tar.bz2 rails-a24ef8611d19bce9c98aa21ee59d9dd0a08ecec5.zip |
Revert "added details to section 4.1.2 of the Asset Pipeline guide, describing how to configure Apache to serve the gzipped version of the precompiled assets"
This reverts commit aec466e75294be177f66472fcdbd392831b26fdd.
Reason: We're not sure about the correctness and won't want to document
something like this with doubts.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/asset_pipeline.md | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 448f0e1f9a..43df544e28 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -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](http://en.wikipedia.org/wiki/Gzip) version of your assets; however, it requires a bit more work: - -```apache -<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] -</LocationMatch> - -<FilesMatch \.css\.gz> - ForceType text/css -</FilesMatch> - -<FilesMatch \.js\.gz> - ForceType application/javascript -</FilesMatch> -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 |