followup of https://bz.apache.org/bugzilla/show_bug.cgi?id=57866 (short version here) FlushableGZIPOutputStream does not compress after the first flush() due to a bug in the JVM (already reported upstream). As per https://bz.apache.org/bugzilla/show_bug.cgi?id=57866#c3 (Konstantin Kolinko): > Tomcat 8 does not use FlushableGZIPOutputStream, but uses new Java7+ constructor for java.util.zip.GZIPOutputStream to enable flushing. > It should be possible to backport that to Tomcat 7 to call that constructor via reflection when running on Java 7+.
Working on it, Please bear with me.
This has been fixed for 7.0.83 onwards.