added chunked response , gzip compress