Added variable to set compression to gzip or defalte. No compression is set by default.