GZIP compression is used to reduce the traffic between the web servers and the browser. By using GZIP we can reduce the sizes of the files such as HTML, JavaScript, JSP and images upto 70% of file size. Enabling GZIP in servers is as easy…