title: how to force Cache-Control to no-store in rails 3.2.20
body: <p>There are several S.O. questions on this like:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/10744169/rails-set-no-cache-method-cannot-disable-browser-caching-in-safari-and-opera">Rails ( set_no_cache method) Cannot disable browser caching in Safari and Opera</a></li>
  <li><a href="https://stackoverflow.com/questions/711418/how-to-prevent-browser-page-caching-in-rails">How to prevent browser page caching in Rails</a></li>
  </ul>
  
  <p>But no mater what I do, what I override I'm still getting header (FireFox, Chrome, <code>curl -V</code>, ...any browser)</p>
  
  <p><code>
  Cache-Control: must-revalidate, private, max-age=0
  </code></p>
  
  <p>I tried </p>
  
  <pre><code>class ApplicationsController &lt; ActionController::Base
    before_filter :no_store_cache
    after_filter :no_store_cache
  
    def no_store_cache
      response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
      response.headers["Pragma"] = "no-cache"
      response.headers["Expires"] = '-1'
    end
  end
  </code></pre>
  
  <p>I Tried to call this callback directly on <code>ActionController::Base</code> (<a href="https://github.com/equivalent/no_cache_control.git" rel="nofollow noreferrer">https://github.com/equivalent/no_cache_control.git</a> )</p>
  
  <p>I Tried digging in <code>rack-cache</code> middle-ware overriding stuff trying to enforce the header</p>
  
  <p>I've created my own middleware that was overriding <code>header['Cache-Control']</code>.</p>
  
  <p>nothing works  </p>