support gzip and deflate compress