Browse files

adding documentation about RAILS_ASSET_ID

  • Loading branch information...
jashkenas committed Jan 26, 2010
1 parent 414d090 commit f3e12c2459141cb7bfdd39ab035de6c29c2f61b3
Showing with 10 additions and 1 deletion.
  1. +10 −1 index.html
@@ -429,7 +429,9 @@ <h2 id="expires">Expires Headers</h2>
- If you're using <b>Apache</b>, add the following snippet to the
+ If you're using <b>Apache</b>, make sure that
+ <a href="">mod_expires</a>
+ is enabled, and then add the following snippet to the
appropriate <b>VirtualHost</b> section of your configuration,
filling in the path to your deployed application:
@@ -440,6 +442,13 @@ <h2 id="expires">Expires Headers</h2>
ExpiresDefault "access plus 1 year"
+ <p>
+ If for any reason (multiple physical servers, rsync-only deploys) you don't
+ wish to rely on modification times for cache expiry, Jammit uses the
+ standard Rails helpers to generate URLs, and will respect
+ the <tt>RAILS_ASSET_ID</tt> environment variable.
+ </p>
<h2 id="embedding">Embedding Images</h2>

0 comments on commit f3e12c2

Please sign in to comment.