title: ERR_CONTENT_LENGTH_MISMATCH while loading js files on tomcat server
body: <p><strong>Configuration:</strong> </p>
  
  <ul>
  <li>OS: CntOS 6.5 minimal </li>
  <li>Tomcat: 7.0.53 </li>
  <li>Deployed war file contains many
  .js and .css files</li>
  </ul>
  
  <p><strong>Issue:</strong> 
  When the war file is deployed on tomcat, it gets exploded properly and the web portal works fine. 
  Machine is idle for over 12 hours.</p>
  
  <ul>
  <li>I access tomcat page: works fine. Even the manager page opens fine. </li>
  <li>I launch my webportal, it does not load. Error: 
  GET http://:8080/webportal/client/libs/jquery/jquery-ui-1.9.2.min.js net::ERR_CONTENT_LENGTH_MISMATCH 10.211.106.184/:63
  I get this error for various other js files as well.</li>
  </ul>
  
  <p><strong>What i have tried:</strong> </p>
  
  <ul>
  <li>Not an issue with memory since sufficient memory is available.</li>
  <li>Tried to open the .js file in another tab, the page keeps loading for a long time and then stops loading. The file is not fully downloaded. Hence the content mismatch issue. </li>
  <li>Access to the same url from the local CentOS box using wget works but access from browser on remote box does not</li>
  <li>Once static file is accessed on appliance using vi editor (not saved only accessed), downloads from browser start working</li>
  </ul>
  
  <p><strong>Question:</strong> </p>
  
  <ul>
  <li>What could possibly be an issue here? Is there any compatibility issue with tomcat and CentOS.</li>
  <li>Note again that immediately after deployment everything works fine. Webportal does not work only after a few (>12 approx) hours of inactivity.</li>
  </ul>