Page is a not externally linkable
- WebmasterWorld
-- Accessibility and Usability
---- Page speed gzip confusion


memario - 11:27 am on Mar 18, 2011 (gmt 0)


Hey guys I'm back to the topic.
I found this code on two different articles for joomla gzip compression.
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

When I place this in the begining of the <head> I can't access my page. firefox says:
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
But the page speed tool removes the "Enable compression" warning.
When I remove the code, I can access the website but the page speed warning is back. Can you explain to me what is this code doing ? And overall what is going on ?


Thread source:: http://www.webmasterworld.com/accessibility_usability/4281423.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com