Gzip not detected but techs confirmed Deflate is enabled

Hi, I've been investigating performance of my smoothcreative.co.uk multisite installation. I have a bare bones duplicate set up on a more exclusive shared server at 123relay.com in order to test one of the sub-sites. I want to enable Gzip but Hummingbird won't detect it.

I checked with the server administrators and they have told me deflate is enabled but that some plugins don't detect it correctly.

I can see the Gzip stuff added into my .htaccess but running the site through gtmetrix no Gzip is detected and it's the top recommendation to improve performance.

  • Predrag Dubajic

    Hey Matt,

    Hope you're doing well today

    Have you already tried disabling other plugins to make sure something from there is not blocking it?

    Since you already check if deflate is enabled and it still doesn't work checking your admin section wouldn't help much here, so could you provide me with FTP or cPanel login details so we can dig deeper into this?

    You can send us your details using our contact form https://premium.wpmudev.org/contact/ and the template below:

    IMPORTANT: Make sure you select "I have a different question" for your topic so it doesn't go back to forums - this and the subject line ensure that it gets assigned to me.

    Subject: "Attn: Predrag Dubajic"
    - Site login url
    - WordPress admin username
    - WordPress admin password
    - FTP credentials (host/username/password)
    - cPanel credentials (host/username/password)
    - Link back to this thread for reference
    - Any other relevant urls

    Best regards,
    Predrag

  • Matt

    Hi, I have got Gzip working by removing the humming bird lines in .htaccess and using these...

    <IfModule mod_deflate.c>
      # Compress HTML, CSS, JavaScript, Text, XML and fonts
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE application/rss+xml
      AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
      AddOutputFilterByType DEFLATE application/x-font
      AddOutputFilterByType DEFLATE application/x-font-opentype
      AddOutputFilterByType DEFLATE application/x-font-otf
      AddOutputFilterByType DEFLATE application/x-font-truetype
      AddOutputFilterByType DEFLATE application/x-font-ttf
      AddOutputFilterByType DEFLATE application/x-javascript
      AddOutputFilterByType DEFLATE application/xhtml+xml
      AddOutputFilterByType DEFLATE application/xml
      AddOutputFilterByType DEFLATE font/opentype
      AddOutputFilterByType DEFLATE font/otf
      AddOutputFilterByType DEFLATE font/ttf
      AddOutputFilterByType DEFLATE image/svg+xml
      AddOutputFilterByType DEFLATE image/x-icon
      AddOutputFilterByType DEFLATE text/css
      AddOutputFilterByType DEFLATE text/html
      AddOutputFilterByType DEFLATE text/javascript
      AddOutputFilterByType DEFLATE text/plain
      AddOutputFilterByType DEFLATE text/xml
    
      # Remove browser bugs (only needed for really old browsers)
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent
    </IfModule>

    I am performance testing with GTmetrix and with this they give me a 100% score for Gzip. Google PageSpeed is also very happy.

    I don't know enough about this to understand why these are working but the Hummingbird defaults are not, but maybe it will help someone else? Could Hummingbird not use these rules by default?