I have a tomcat server configured (by mod_jk) to work through Apache Httpd server.
Apache Httpd server compresses (by mod_deflate) all text/html sent to browser.
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.
I would like to have ability to set in JSP page some response header, e.g.
<% response.setHeader("X-Compress", "0"); %>
And in Apache Httpd this must result in disabling compression, for example by setting no-gzip environment variable.
Maybe there is other approaches?