• Resolved yraver

    (@yraver)


    Hi,

    GZIP for HTML wont enable. Your system tells me:

    1. We’ve detected you have Privacy Mode active which prevents us from accurately detecting whether HTML compression is active or not. You can re-check this when you’ve disabled Privacy Mode.

    2. Your server may not have the “deflate” module enabled (mod_deflate for Apache, ngx_http_gzip_module for NGINX).

    3. Contact your host. If deflate is enabled, ask why all .htaccess or nginx.conf compression rules are not being applied.

    So I contacted our hosting company and received the following reply:

    “PHP generated HTML files can’t be compressed. This is because of the sofware we use for our webserver, PHP-FPM in combination with FastCGI.

    A GIP test will probably tell you that the functionality is off, however, this is not the case (except for the PHP generated HTML files).”

    What do you think we should do next to solve the problem? GTMetrix and your system displays that HTML Gzip is definately disabled.

    Looking forward to your reply.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @yraver ,

    This very strange what your hosting said because Apache or Nginx can compress PHP generated HTML files on the fly.
    So I’m not really sure what they meant. For sure gzip compression is not enabled on your site, even this test shows that https://www.giftofspeed.com/gzip-test/

    Can you get information about what type of server it is? Apache or Nginx?

    kind regards,
    Kasia

    Thread Starter yraver

    (@yraver)

    Hi @wpmudev-support2 ,

    The response from my hosting company:

    “This is in line with what we said earlier. The GZIP function is actually on, but in tests it probably doesn’t show up.

    and

    “PHP generated HTML files cannot be compressed because of the software we use in our webserver, PHP-FPM in combination with FastCGI.”

    So my question to you @wpmudev-support2 did you ever see that GZIP seemed not activated, however it was actually activated?

    Let me know what you think we could do about this. In the worst case i’m willing to change from hosting provider.

    Thank you in advance.

    @yraver,

    No, gzip compression is either on or off. The compressed assets will be served with a special header that will allow various testing tools to distinguish between compressed and uncompressed states. So if testing tools report gzip compression to be disabled – it is probably disabled.

    Best regards,
    Anton

    Thread Starter yraver

    (@yraver)

    Hi,

    So i just spoke with the hosting provider again. They indeed confirm that PHP generated HTML files cannot be compressed because of the software they use in our webserver, PHP-FPM in combination with FastCGI.

    Now we know for sure, PHP generated HTML files can’t be compressed due to their server settings. Is there a solution? or should i change from hosting provider.

    Thank you.

    @yraver,

    That’s a decision that you’ll have to make for yourself. If you’re happy with your hosting provider and your site performance – I wouldn’t go through the trouble of changing providers. Gzip compression won’t make a huge impact on performance. You can enable Page Caching and Hummingbird has an option to serve compressed cache. So that will be similar to Gzip compression. If you are having ongoing issues besides the gzip compression problem, you can consider switching to a new hosting.

    Best regards,
    Anton

    Thread Starter yraver

    (@yraver)

    Hi Anton,

    Ok, I’ll stay with for the hosting company for now and continue with optimizing with hummingbird.

    Thank you!

    • This reply was modified 6 years, 8 months ago by yraver.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error html gzip’ is closed to new replies.