January 2019
Intermediate to advanced
460 pages
10h 33m
English
Enabling compression for Express.js saves you and your user bandwidth, and this is pretty easy to do. The following code must also be added to the server index.js file:
app.use(compress());
This middleware compresses all responses going through it. Remember to add it very high in your routing order so that all requests are affected.
Read now
Unlock full access