fix gzip and cached headers