title: How to disable compression in Apache on some response header from mod_jk proxied application server
body: <p>I have a tomcat server configured (by mod_jk) to work through Apache Httpd server.</p>
  
  <p>Apache Httpd server compresses (by mod_deflate) all text/html sent to browser.</p>
  
  <p>Some jsp pages are interactive and long running, i.e. display progress or log during execution.
  If compression turned on, all text on these pages comes at the end of page execution. </p>
  
  <p>I would like to have ability to set in JSP page some response header, e.g.</p>
  
  <pre><code>&lt;% response.setHeader("X-Compress", "0"); %&gt;
  </code></pre>
  
  <p>And in Apache Httpd this must result in disabling compression, 
  for example by setting <strong>no-gzip</strong> environment variable.</p>
  
  <p>Maybe there is other approaches?</p>