From fe309b5223972efbbbb25eb3b318e139cae06c95 Mon Sep 17 00:00:00 2001 From: Nathaniel Madura Date: Wed, 29 Aug 2012 13:13:58 -0400 Subject: [PATCH] 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. --- guides/source/asset_pipeline.textile | 3 +++ 1 file changed, 3 insertions(+) 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: +# the following requires mod_expires +# on Ubuntu issue: +# sudo a2enmod expires # Use of ETag is discouraged when Last-Modified is present Header unset ETag