How to Setup Gzip Compression in Php

Using php we can start gzip using the following code


ob_start("ob_gzhandler");


The code returns false if the browser does not support compression and the default ob_start is called.

This is one way of optimizing your website, specially those sites that load multiple images and files.

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source
Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.