Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit fe309b5223972efbbbb25eb3b318e139cae06c95 1 parent da85347
Nathaniel Madura nmadura authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  guides/source/asset_pipeline.textile
3  guides/source/asset_pipeline.textile
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.