gzip is not working properly. What is the solutions?


I received this error and I want to know how to proceed next:

gzip is not working properly

Thank you!

  • Nastia

    Hello @alex187

    The plugin is running on all PHP versions, but we suggest to use PHP version 5.6 or greater, based from the WordPress requirements.

    If the mod_deflate is supported on the server, would you please ask your hosting to enable it? Before contacting with your host provider, please add the following code to the .htaccess file:

    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

    If enabling mode_deflate will not help, please make sure that PHP is configured to support zlib library and that zlib output support is enabled; there's a php.ini setting for this that should be set to "on":

    zlib.output_compression = On

    In case it's set to "off" you will want to change it to "on" and restart Apache

    Let us know how it went!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.