Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding documentation about RAILS_ASSET_ID

  • Loading branch information...
commit f3e12c2459141cb7bfdd39ab035de6c29c2f61b3 1 parent 414d090
Jeremy Ashkenas jashkenas authored

Showing 1 changed file with 10 additions and 1 deletion. Show diff stats Hide diff stats

  1. +10 1 index.html
11 index.html
@@ -429,7 +429,9 @@ <h2 id="expires">Expires Headers</h2>
429 429 }</pre>
430 430
431 431 <p>
432   - If you're using <b>Apache</b>, add the following snippet to the
  432 + If you're using <b>Apache</b>, make sure that
  433 + <a href="http://httpd.apache.org/docs/1.3/mod/mod_expires.html">mod_expires</a>
  434 + is enabled, and then add the following snippet to the
433 435 appropriate <b>VirtualHost</b> section of your configuration,
434 436 filling in the path to your deployed application:
435 437 </p>
@@ -440,6 +442,13 @@ <h2 id="expires">Expires Headers</h2>
440 442 ExpiresDefault "access plus 1 year"
441 443 &lt;/Directory&gt;</pre>
442 444
  445 + <p>
  446 + If for any reason (multiple physical servers, rsync-only deploys) you don't
  447 + wish to rely on modification times for cache expiry, Jammit uses the
  448 + standard Rails helpers to generate URLs, and will respect
  449 + the <tt>RAILS_ASSET_ID</tt> environment variable.
  450 + </p>
  451 +
443 452 <h2 id="embedding">Embedding Images</h2>
444 453
445 454 <p>

0 comments on commit f3e12c2

Please sign in to comment.
Something went wrong with that request. Please try again.