Grow your CSS skills. Land your dream job.

Gzip Compression Hell

  • # August 29, 2009 at 12:09 am

    Hi there. I’ve been having a hell of a time over the last hour trying to figure out why Google’s Page Speed for Firebug is telling me that I need to enable gzip compression on one page of my website even though I put

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

    in the first line of my php document before the DOCTYPE.

    Just to be clear all of the other pages on my site are set up the exact same way and Page Speed seems to like those pages just fine. It’s just this one specific page.

    It’s just a standard XHTML document with valid XHTML a bunch of tables for containing Calendar entries.

    # August 29, 2009 at 1:11 am

    try moving the code into the head section of the page. see what happens. otherwise, copy and paste the error code google gives you into google to see what others have done about this problem.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".