Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator James Huff

    (@macmanx)

    Actually, the wording is a little bit clumsy. It means that your blog isn’t using Gzip compression.

    If your server has mod_deflate enabled, add this to the top of either your root .htaccess file or your WordPress .htaccess file:

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    </IfModule>

    Now, check your blog again.

    Moderator t-p

    (@t-p)

    Thanks James.

    My bolg is on shared server. I will contact my server to find out if it has mod_deflate enabled.

    Do IE6, IE7, FF2 etc. support?

    Thanks again

    Moderator James Huff

    (@macmanx)

    My bolg is on shared server. I will contact my server to find out if it has mod_deflate enabled.

    Even if they say no, try it anyway. ?? Many a lying host have I encountered. The <IfModule mod_deflate.c> prevents it from running if mod_deflate is disabled.

    Do IE6, IE7, FF2 etc. support?

    All browsers support gzip compression with the following exceptions:

    Browsers based on Mozilla 3 and lower (Moz 3 and lower and early Netscape builds): do not support gzip compression

    Browsers based on Mozilla 4 (Moz 4 and lower, later Netscape, and early FF builds): only support gzip compression of text/html

    IE: only supports gzip compression of text/html (haven’t tested in IE 9 yet)

    The code accounts for all of the above scenarios.

    Moderator t-p

    (@t-p)

    Thanks James.
    You have given here fantastic information for a newbie like me! Very helpful. I really appreciate it.

    final question: Olders browsers thst do not support gzip compression, what happens when someone using one of those browsers visits my site?

    Thanks a lot again.

    Moderator James Huff

    (@macmanx)

    Olders browsers thst do not support gzip compression, what happens when someone using one of those browsers visits my site?

    The wouldn’t be able to load your blog, which is why the code has specific instructions for them.

    Moderator t-p

    (@t-p)

    Thanks James for your patient.

    The wouldn’t be able to load your blog, which is why the code has specific instructions for them.

    Does this means that if I use the code, those browsers that do not support will still load my blog?

    Thanks James.

    Moderator James Huff

    (@macmanx)

    Does this means that if I use the code, those browsers that do not support will still load my blog?

    That’s correct.

    Moderator t-p

    (@t-p)

    Thanks James.

    I am sure the information you have provided here is going to help many more users like me.

    Your help and patient is greatly appreciated.

    edit: I tried your code in my .htaccess and works like charm

    Moderator James Huff

    (@macmanx)

    You’re welcome!

    If your server does not have mod_deflate enabled, I believe you can achieve the same results with

    # compress text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    
    # Or, compress certain file types by extension:
    <Files *.html>
    SetOutputFilter DEFLATE
    </Files>

    I just installed James’ code and my site seems to be working fine. The ismyblogworking.com site reports that GZIP is now enabled and working.

    My home page is large, and one thing I’ve noticed is that there is now a short pause before the page loads, but when it loads it seems to pop in nearly complete (instead of the various elements coming in individually). Either way my home page takes a little under 5 seconds to load, but with GZIP enabled the loading seems more professional looking, so to speak.

    I’m assuming that there will also be a significant reduction in bandwidth, right? Also, both IE9, Firefox 4 and Chrome 10 all seem to work fine.

    I’m curious if anyone else has tried this and what your results are?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘gzip compression question’ is closed to new replies.