title: Are cookies stored in browser cache?
body: <p>I'm running into a problem where Javascript I've written is getting an outdated cookie value. Each request made to the server should be updating the cookie with a the date the session will expire. But occasionally the date is in the past (which doesn't make sense because the page just loaded which renews the session). </p>
  
  <p>So I'm wondering if the outdated value could be coming from the browser (Chrome) cache. Do cookie values get stored in the cache and then placed in document.cookie when the cached resource is utilized?</p>
  
  <p>I'm reading the cookie via this code:</p>
  
  <pre><code>readCookie : function(name) {
          var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
          return (match ? decodeURIComponent(match[3]) : null);
      },
  </code></pre>