Node.js: Gzip compression?

前端 未结 13 1401
迷失自我
迷失自我 2020-11-30 21:57

Am I wrong in finding that Node.js does no gzip compression and there are no modules out there to perform gzip compression? How can anyone use a web server that has no compr

13条回答
  •  -上瘾入骨i
    2020-11-30 22:46

    How about this?

    node-compress
    A streaming compression / gzip module for node.js
    To install, ensure that you have libz installed, and run:
    node-waf configure
    node-waf build
    This will put the compress.node binary module in build/default.
    ...

提交回复
热议问题