See the written version of this tutorial for links to prerequisites and related tutorials: https://heynode.com/tutorial/add-compression-express-nodejs.?utm_source=youtube&utm_medium=referral+&utm_campaign=YT+description&utm_content=add-compression-to-express-in-nodejs
In this tutorial we will use the Node.js Express compression middleware package to implement basic compression our server. Compression encodes information into a smaller size than the original, decreasing the bandwidth usage of an application and providing faster download speeds for clients.
Heynode.com: The best online Node.js courses and tutorials to help you solve hard problems fast.