Improve the regex matching for gzipping backend content