The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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

    < ?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

    This reply has been reported for inappropriate content.

    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed