response.addHeader("Content-Encoding", "gzip");
final ByteArrayOutputStream boas = new ByteArrayOutputStream(8192);
final GZIPOutputStream gzs = new GZIPOutputStream(boas);
if (content1 != null) Files.copy(gzs, content1);
if (content2 != null) gzs.write(content2);
gzs.finish();
return boas.toByteArray();
// } else if (ae.indexOf("deflate") >= 0) {
//Refer to http://www.gzip.org/zlib/zlib_faq.html#faq38
//It is not a good idea to zlib (i.e., deflate)
}