I did run some speed test on my site by google chrome, I got a result of 62%. One of the major problems is the compression of GZIP. I contacted my hosting provider and they replied me the following:
Add the following code to the very top of your Web pages above the DOCTYPE:
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
Rename the file you want to compress with a .php extension instead of .html or .htm and upload the file to your site. The file will be compressed upon request and delivered to the visitors’ browser.
Well what exactly I should try to rename and where? The speed test indicated this:
Try applying Tim Plumb’s Web Fast Action to your pages, and as they recommend, rename them (only change the Filename attribute in the INspector on each page) so that it has the .php rather than the .html extension.
On Oct 5, 2011, at 1:44 PM, Michael Coldereo wrote:
Hello everyone
I did run some speed test on my site by google chrome, I got a result of 62%. One of the major problems is the compression of GZIP. I contacted my hosting provider and they replied me the following:
Add the following code to the very top of your Web pages above the DOCTYPE:
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
Rename the file you want to compress with a .php extension instead of .html or .htm and upload the file to your site. The file will be compressed upon request and delivered to the visitors’ browser.
Well what exactly I should try to rename and where? The speed test indicated this:
Well what exactly I should try to rename and where?
They’re saying that for each web page you want compressed you need to change the file extension so in your FW document select each page and change each page from .html to .php.
Then insert the code they gave you by going to Menu > Page > HTML Markup > Before
Initially I added the web fast action, but didn’t change the page speed results. I used also the code provided from my hosting company and changed the home page to php just to test it, but again this didn’t alter the google speed test results. What is changing the results is the compression of the images in the site, so I will play with this a bit. I need to achieve at least score of 70, which is ok for google.
Thank you guys, I always learn something useful here.