search

Home  >  Q&A  >  body text

node.js - node express4 compression模块为何要把compression放在最前面

在用express开发时候,有很多app.use() 为什么报文压缩要放在开头
app.use(compression());
app.use();
app.use();
app.use();
...

黄舟黄舟2871 days ago618

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 11:40:37

    This is the order relationship of the middleware, which ensures that all content is compressed.

    reply
    0
  • Cancelreply