aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorNathaniel Madura <nmadura@umich.edu>2012-08-29 13:13:58 -0400
committerNathaniel Madura <nmadura@umich.edu>2012-08-29 13:13:58 -0400
commitfe309b5223972efbbbb25eb3b318e139cae06c95 (patch)
tree12d72c11379bc19a6fd122d743315daf0bffc309 /guides/source/asset_pipeline.textile
parentda85347a06fefb55b1ddb85e44ac621f034af1b3 (diff)
downloadrails-fe309b5223972efbbbb25eb3b318e139cae06c95.tar.gz
rails-fe309b5223972efbbbb25eb3b318e139cae06c95.tar.bz2
rails-fe309b5223972efbbbb25eb3b318e139cae06c95.zip
added a touch more information to the apache configuration instructions
In the text there is a section about how to serve the assets with far-future headers. The snippet that is proposed doesn't work on Ubuntu 11 (probably others) as mod_expires is not enabled out-of-the-box. I noted this, and gave an example of how to load mod_expires with a2enmod.
Diffstat (limited to 'guides/source/asset_pipeline.textile')
-rw-r--r--guides/source/asset_pipeline.textile3
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/asset_pipeline.textile b/guides/source/asset_pipeline.textile
index 06df428cc3..9c641db964 100644
--- a/guides/source/asset_pipeline.textile
+++ b/guides/source/asset_pipeline.textile
@@ -473,6 +473,9 @@ Precompiled assets exist on the filesystem and are served directly by your web s
For Apache:
<plain>
+# the following requires mod_expires
+# on Ubuntu issue:
+# sudo a2enmod expires
<LocationMatch "^/assets/.*$">
# Use of ETag is discouraged when Last-Modified is present
Header unset ETag