Node.js: Gzip compression?

前端 未结 13 1442
迷失自我
迷失自我 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条回答
  •  半阙折子戏
    2020-11-30 22:46

    As of today, epxress.compress() seems to be doing a brilliant job of this.

    In any express app just call this.use(express.compress());.

    I'm running locomotive on top of express personally and this is working beautifully. I can't speak to any other libraries or frameworks built on top of express but as long as they honor full stack transparency you should be fine.

提交回复
热议问题