Felix Halim .NET  

HTTP Compression using "ob_gzhandler" improves transfer speed a lot!

Posted on [2016-04-13 01:08:23], Category [undefined]

Now all HTTP requests to Felix-Halim.NET will be responded using "Content-Encoding: gzip" if possible. This reduces the transfer time and network traffic tremendously.

PHP made it so easy to achieve this: just by adding this line at the very beginning of the script:


To see that the gzhandler working correctly, you can view the page using FireFox and FireBug plugin and see under Net tab the response header will now contains "Content-Encoding: gzip" and the response bytes reduced significantly.

Comments: 0  |  Add Comment

© Felix Halim 2009 (Loaded in 0.00672 secs)