title: NGINX expiry headers for rails 3.2 app
body: <p>I'm trying to add expiry headers for a 3.2 apps on nginx 1.2.4, compiled with default support for headers module.</p>
  
  <p>My rule inside the server {} block is:</p>
  
  <pre><code>location /assets/ {
      access_log   off;
      expires      30d;
  }
  </code></pre>
  
  <p>I tried other reg exp based on file name extension that I found online, but all seem to do not work.
  What am I doing wrong?</p>
  
  <p>Reponse headers is:</p>
  
  <pre><code>Accept-Ranges   bytes
  Age 0
  Cache-Control   proxy-revalidate
  Connection  Keep-Alive
  Content-Type    text/css
  Date    Fri, 02 Nov 2012 03:58:45 GMT
  Last-Modified   Fri, 02 Nov 2012 01:08:09 GMT
  Via 1.1 BC5-ACLD
  </code></pre>