WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] gzip compression question (12 posts)

  1. Tara
    Member
    Posted 3 years ago #

    Hi,

    When running a test through http://ismyblogworking.com/ it throws up this issue:

    Your blog application doesn't support gzip compression

    what does it mean, Hw can I reconcite it?

    Thanks.

  2. 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.

  3. Tara
    Member
    Posted 3 years ago #

    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

  4. 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.

  5. Tara
    Member
    Posted 3 years ago #

    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.

  6. 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.

  7. Tara
    Member
    Posted 3 years ago #

    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.

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

    That's correct.

  9. Tara
    Member
    Posted 3 years ago #

    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

  10. You're welcome!

  11. silentpro
    Member
    Posted 3 years ago #

    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>
  12. beggers
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags