As an example, here are a couple of our files compressed using gulp-gzip (all default options):
Also tried explicitly setting { gzipOptions: { level: 9 } }, but it had no effect. However changing the level to a lower number increased the size, leading me to the conclusion that level 9 is the default compression level.
And here are those same files, compressed using the command-line gzip utility (all default options):
We get the same results (the smaller sizes i.e. the second screenshot) when compressing server-side with the compression middleware.
Since they are all using zlib, I would expect the same results across the board. But as you can see, the file sizes are nearly double with gulp-gzip. Any thoughts?
As an example, here are a couple of our files compressed using
gulp-gzip
(all default options):And here are those same files, compressed using the command-line
gzip
utility (all default options):We get the same results (the smaller sizes i.e. the second screenshot) when compressing server-side with the compression middleware.
Since they are all using zlib, I would expect the same results across the board. But as you can see, the file sizes are nearly double with
gulp-gzip
. Any thoughts?