title: Using back button: IE and Safari not reading from cache whereas Firefox and Chrome do
body: <p>I'd like to avoid a GET request when the user navigates away from a page and returns to it when using the broswer's back button. This works fine without any special treatment in Firefox and Chrome (recent versions).</p>
  
  <p>However, Safari and IE both perform a GET request when using the back button to go back to a previous page.</p>
  
  <p>I've fiddled around with headers controlling the caching behavior (Last-Modified, Expires, Cache-Control) without success. Any suggestions how one can stop IE and Safari from reloading the page when using the back button?</p>
  
  <p>Here's is a typical request and response header, which are identical in IE and Safari when using the back button, reloading the page or entering the URL in the adress bar.</p>
  
  <p><em>Request Headers</em></p>
  
  <pre><code>Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  Accept-Encoding:gzip, deflate
  Accept-Language:en-US
  Origin:http://165.88.162.245:8000
  Referer:http://165.88.162.245:8000/login?next=/
  User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1
  </code></pre>
  
  <p><em>Response Headers</em></p>
  
  <pre><code>Content-Language:en
  Content-Type:text/html; charset=utf-8
  Date:Tue, 12 Jul 2011 11:35:31 GMT
  Server:WSGIServer/0.1 Python/2.6.6
  Set-Cookie:sessionid=0675e1246fe03946c54d2052e7adf0c9; Path=/
  Vary:Accept-Language, Cookie
  </code></pre>