title: How to modify http-headers on static files served by JBoss
body: <p>I have a web application (.war) that contains some static files (e.g. MS word documents). When I try to download these files, JBoss automatically sets some HTTP-headers in the response. Is there a way to configure JBoss (version 3.2.7) to set these headers to specific values (or omit them)? 
  I'm especially interested in the </p>
  
  <pre><code>Cache-Control: no cache
  </code></pre>
  
  <p>header, because this leads to some problems when downloading files over https with Internet Explorer (IE will refuse to save the file to disk).</p>
  
  <p>Btw. this behaviour can be changed by adding an entry to the windows registry:</p>
  
  <pre><code>[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
  "BypassSSLNoCacheCheck"=dword:00000001
  </code></pre>
  
  <p>but obviously I'm not going to ask customers to fiddle with their registry just to donwload a file.</p>
  
  <p>Any suggestions are greatly appreciated.</p>