Duplicate headers in response / browsers failing intermittently
<p>This problem seems to have started a few days ago without any code changes, my local tomcat server would just stop responding.</p>

<p>My main filter breakpoints don't get hit, and only some resources get loaded.</p>

<p>The ones that do fail, seems to have duplicate response headers:</p>

<pre><code>Accept-Ranges:bytes
Accept-Ranges:bytes
Content-Disposition:inline;filename="online-framework.js"
Content-Disposition:inline;filename="online-framework.js"
Content-Encoding:gzip
Content-Encoding:gzip
Content-Range:bytes 0-42062/42063
Content-Range:bytes 0-42062/42063
Content-Type:application/javascript
Content-Type:application/javascript
Date:Tue, 19 Apr 2016 13:01:18 GMT
ETag:online-framework.js_42063_1461060446000
ETag:online-framework.js_42063_1461060446000
Expires:Tue, 26 Apr 2016 13:01:19 GMT
Expires:Tue, 26 Apr 2016 13:01:19 GMT
Last-Modified:Tue, 19 Apr 2016 10:07:26 GMT
Last-Modified:Tue, 19 Apr 2016 10:07:26 GMT
Server:Apache-Coyote/1.1
Server:Apache-Coyote/1.1
Transfer-Encoding:chunked
Transfer-Encoding:chunked
Vary:Accept-Encoding
Vary:Accept-Encoding
</code></pre>

<p>And chrome stops with an error: <code>Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING</code>, which makes sense.</p>

<p>The tomcat connector has not been modified and does include a gzip response. what have I tried:</p>

<ul>
<li>thread dump - no obvious blocking code</li>
<li>wireshark - don't know it good enough to figure out what goes wrong</li>
<li>disabled antivirus</li>
<li>no proxies running</li>
</ul>

<p>The page just seems to load forever. Here is the kicker, it happens randomly, it would start working one hour but not the next.</p>

<p>The only thing I can thinl of is that some domain thing may have changed, no windows updates have run, and 3 or 4 other pc's do the same thing while 2 others do not (same build)</p>

<p>I have no idea where to look next? Any ideas?</p>