title: Rack::Cache/Rack::Etag 304
body: <p>I use Rack:Etag to genereate proper etag values based on the response from the server and for development I use Rack::Cache to verify that that caching I expect to happen really does</p>
  
  <p>But i have a slight predicament:</p>
  
  <p>I send a request and get these headers back</p>
  
  <pre><code>Age →0
  Cache-Control →public, max-age=10
  Connection →keep-alive
  Content-Length →4895
  Content-Type →application/json; charset=UTF-8
  Date →Wed, 02 Oct 2013 06:55:42 GMT
  ETag →"dd65de99f4ce58f9de42992c4e263e80"
  Server →thin 1.5.1 codename Straight Razor
  X-Content-Digest →0879e41b0d8e9b351f517dd46823095e0e99abd8
  X-Rack-Cache →stale, invalid, store
  </code></pre>
  
  <p>If i after 11 seconds send a new request with If-None-Match=dd65de99f4ce58f9de42992c4e263e80 then i expect to get a 304 but always get 200 with the above headers.</p>
  
  <p>What am I missing ?</p>