title: Proxy cacheing - What about cookies?
body: <p>I read <a href="http://code.google.com/speed/page-speed/docs/caching.html">http://code.google.com/speed/page-speed/docs/caching.html</a>. It says that proxy servers may cache cookies. I need clarification.</p>
  
  <hr>
  
  <p>Let's say I have this header for my files: <code>Cache-Control "max-age=604800, public"</code><br />
  <strong>Q.1.</strong> With this header, will the cookies from a person's computer be cached on the proxy server when a static file is accessed? (Then, would the next person to access the file <i>pick up</i> the other person's cookies?)<br /></p>
  
  <hr>
  
  <p>Now, let's say the cache code went like <code>Cache-Control "max-age=7200, proxy-revalidate"</code> instead.<br /><strong>Q.2.</strong> What would be the difference as far as cookie cacheing on the proxy server?</p>
  
  <hr>
  
  <p>Now I have a question about files that actually <i>set</i> cookies (such as Javascript or PHP).<br /><strong>Q.3.</strong> Will cookies be cached on the proxy server when these kinds of files are accessed? Or is the cacheing the same as static files?</p>
  
  <hr>
  
  <p>In case you are wondering, the reason I ask these things is because I do <i>not</i> one person's cookies to be proxy cached, and thus transferred to another person. So any clarification would really help. Thank you so much!</p>
  
  <hr>
  
  <p><b>Edit:</b>
  <br />Thank you very much for all the help. But I still need a little more clarification.<br /><br />If I have files using header <code>Cache-Control "max-age=604800, public"</code>, will any request cookies (<code>Cookie</code>) or response cookies (<code>Set-Cookie</code>) be transferred to <i><b>another user's computer</b></i> (since its in the cache)? Or will it be cached <em>only</em> for that individual user's browsing? What about if the setting is <code>Cache-Control "max-age=7200, proxy-revalidate"</code>? Thanks again.</p>