Hummingbird and WP Super Cache Zlib compression conflict?

Hi! I have both Hummingbird and WP Super Cache installed, but they seem to conflict in terms of whether they want zlib compression enabled or not? To get Hummingbird’s compression working I had to enable zlib output compression, but WP Super Cache is giving me warnings : “Zlib Output Compression Enabled! PHP is compressing the data sent to the visitors of your site. Disabling this is recommended as the plugin caches the compressed output once instead of compressing the same page over and over again. “

Is this a known issue? Thinking I’ll just ignore it as I do like having Hummingbird working, but is there any possible way to resolve this? Thanks!

  • Lindeni Mahlalela
    • Recruit

    Hello Maria

    I hope you are doing great today. Thank you for contacting us and for reporting this. I have looked into this and I confirm that you do not need to have Zlib compression for Hummingbird.

    Hummingbird uses GZip Compression which is usually enabled without enabling Zlib.You can check if your website has Gzip compression enabled by using this online tool. I have checked your website and GZip Compression is already enabled and I noticed that I do not see the warning about Zlib on the WP Super Cache page which means Zlib is currently disabled.

    On my website, Hummingbird's GZip compression is already enabled and it is playing nicely with WP Super Cache. Once I enable Zlib by adding the following lines of code in my php.ini file:

    zlib.output_compression = On
    zlib.output_compression_level = 9

    Then I see the Zlib warning in WP Super Cache.

    [attachments are only viewable by logged-in members]

    This is only related with WP Super Cache and not Hummingbird. GZip and Zlib are different and they can be enabled differently, Hummingbird uses Gzip and that plays nicely with WP Super Cache.

    To answer your questions:

    Is this a known issue?

    I don't think so, I haven't seen this before in Hummingbird tickets. I think this is because the warning is only related to WP Super Cache.

    Thinking I'll just ignore it as I do like having Hummingbird working, but is there any possible way to resolve this?

    Instead of ignoring it, you should remove it because neither Hummingbird nor WP Super Cache needs it. Your site will continue to work fine without it and GZip will be used by Hummingbird to compress your content. As you can see on the screenshot, Gzip is enabled for your site:

    [attachments are only viewable by logged-in members]

    I hope that all makes sense but you have to make the final decision as to whether you need that or not but from my point of view it if you enable Zlib it might cause problems because WP Super Cache sees it as a problem.

    Please let us know if you need any further assistance.

    Have a nice day.

    Mahlamusa