title: Using akamai caching in rails app - don't cache logged in users
body: <p>I am attempting to use akamai in my production app to cache basically every page when you are logged out, as only a small percentage of our users have accounts. However I want to be able to serve logged in users a none cached version of the page.</p>
  
  <p>It seems that I may be able to do this in the controller with something like:</p>
  
  <pre><code>headers['Edge-control'] = "no-cache, no-store"
  </code></pre>
  
  <p>Will this work? Is there a better way to handle this, perhaps from a lower level, like Rack? I am having a lot of trouble finding standard practices.</p>
  
  <p>Thanks!</p>