Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding documentation about RAILS_ASSET_ID

  • Loading branch information...
commit f3e12c2459141cb7bfdd39ab035de6c29c2f61b3 1 parent 414d090
@jashkenas jashkenas authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 index.html
View
11 index.html
@@ -429,7 +429,9 @@ <h2 id="expires">Expires Headers</h2>
}</pre>
<p>
- 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="http://httpd.apache.org/docs/1.3/mod/mod_expires.html">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:
</p>
@@ -440,6 +442,13 @@ <h2 id="expires">Expires Headers</h2>
ExpiresDefault "access plus 1 year"
&lt;/Directory&gt;</pre>
+ <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>
<p>
Please sign in to comment.
Something went wrong with that request. Please try again.