Skip to content

Commit

Permalink
Use maximum gzip compression (Aircoookie#1126)
Browse files Browse the repository at this point in the history
* Use maximum gzip compression

* Revert extra changes

* Remove extra code used when testing brotli compression

* Remove extra space on unrelated changes
  • Loading branch information
pbolduc authored Aug 31, 2020
1 parent 41a8416 commit 916356a
Show file tree
Hide file tree
Showing 2 changed files with 1,795 additions and 1,801 deletions.
2 changes: 1 addition & 1 deletion tools/cdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function writeHtmlGzipped(sourceFile, resultFile) {
}

html = adoptVersionAndRepo(html);
zlib.gzip(html, function (error, result) {
zlib.gzip(html, { level: zlib.constants.Z_BEST_COMPRESSION }, function (error, result) {
if (error) {
console.warn(error);
throw error;
Expand Down
Loading

0 comments on commit 916356a

Please sign in to comment.