Enabling gzip compression

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 20, 2012   (RSS)

By paulmac - December 20, 2012

Hi

I have a site hosted with godaddy and to enable gzip compression they recommended I place the folloiwng code at the top of every page in my site.

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

I'm not a php programmer so I just have a couple of queries about using it:

1. Will there be any conflict with the CMSB code I have on my site?

2. Would there be any security issues with using this code?

Thanks for any advice

By gregThomas - December 20, 2012

Hi,

I've done some local testing, and I couldn't find any conflicts with using gzip compression on a CMS Builder page. Let us know if you do come across any problems. 

I've also done some research on gzip compression security, and it looks as if there are arn't security issues associated with using it, as it affects how the page data is returned, as opposed to any of the content on it. 

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com