title: IE10 following HTTP 302 redirect twice
body: <p>Im experiencing the following issue with IE10 (other browsers like Firefox, Opera, Chrome and older IE versions do not seem to be affected.</p>
  
  <p>(1) The browser hits a page which responds with a HTTP 302 redirect to a different site (in order to perform a login):</p>
  
  <p><strong>Request:</strong></p>
  
  <pre><code>GET https://www.domain-one.de/startpage.aspx?... HTTP/1.1
  Accept: text/html, application/xhtml+xml, */*
  Accept-Language: de-DE
  User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
  Accept-Encoding: gzip, deflate
  DNT: 1
  Host: www.domain-one.de
  Pragma: no-cache
  Connection: Keep-Alive
  Cookie: ...
  </code></pre>
  
  <p><strong>Response:</strong></p>
  
  <pre><code>HTTP/1.1 302 Found
  Cache-Control: private
  Content-Type: text/html; charset=utf-8
  Location: https://login.domain-two.com/login?tid=hGZmFb77-9VyiwfkhIXIRMDp
  Server: Microsoft-IIS/7.5
  X-AspNet-Version: 4.0.30319
  X-Powered-By: ASP.NET
  P3P: CP="NOi CURa TAIa OUR NOR UNI"
  Date: Tue, 13 Aug 2013 19:01:22 GMT
  Content-Length: 190
  
  &lt;html&gt;&lt;head&gt;&lt;title&gt;Object moved&lt;/title&gt;&lt;/head&gt;&lt;body&gt;
  &lt;h2&gt;Object moved to &lt;a href="https://login.domain-two.com/login?tid=hGZmFb77-9VyiwfkhIXIRMDp"&gt;here&lt;/a&gt;.&lt;/h2&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>(2) IE follows this redirect. The server sets some coookies and redirects back to the original site:</p>
  
  <p><strong>Request:</strong></p>
  
  <pre><code>GET https://login.domain-two.com/login?tid=hGZmFb77-9VyiwfkhIXIRMDp HTTP/1.1
  Accept: text/html, application/xhtml+xml, */*
  Accept-Language: de-DE
  User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
  Accept-Encoding: gzip, deflate
  Host: login.domain-two.com
  DNT: 1
  Cookie: ...
  Pragma: no-cache
  Connection: Keep-Alive
  </code></pre>
  
  <p><strong>Response:</strong></p>
  
  <pre><code>HTTP/1.1 302 Found
  Date: Tue, 13 Aug 2013 19:01:22 GMT
  Server: Apache
  P3P: CP="NOI CURa TAIa OUR NOR UNI"
  Location: https://www.domain-one.de/BackFromLogin.aspx?TID=hGZmFb77-9VyiwfkhIXIRMDp
  Content-Length: 277
  Keep-Alive: timeout=2, max=100
  Connection: Keep-Alive
  Content-Type: text/html; charset=iso-8859-1
  
  &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;302 Found&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;h1&gt;Found&lt;/h1&gt;
  &lt;p&gt;The document has moved &lt;a href="https://dwww.domain-one.de/BackFromLogin.aspx?TID=hGZmFb77-9VyiwfkhIXIRMDp"&gt;here&lt;/a&gt;.&lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>(3) Up to here, everything seems normal. However, IE10 now ignores the response just received and follows the same redirect again:</p>
  
  <p><strong>Request:</strong></p>
  
  <pre><code>GET https://login.domain-two.com/login?tid=hGZmFb77-9VyiwfkhIXIRMDp HTTP/1.1
  Accept: text/html, application/xhtml+xml, */*
  Accept-Language: de-DE
  User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
  Accept-Encoding: gzip, deflate
  Host: login.domain-two.com
  DNT: 1
  Connection: Keep-Alive
  Cookie: ...
  </code></pre>
  
  <p>This server detects this duplicate request and rejects it, responding with an error page (I know HTTP GET should be idempotent, but that is how this site works).</p>
  
  <p><strong>It is beyond me why IE10 ignores the original response and issues the same request again (albeit without the 'Pragma: no-cache' header). Do you have any idea?</strong></p>