See the written version of this tutorial for links to prerequisites and related tutorials: https://heynode.com/tutorial/add-comp...
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.