• Resolved himala76

    (@himala76)


    Hello Team

    I get Gzip is not working properly error on my site after running the plugin . after contacting my hosting support team they are confirmed all the modes are enabled. mod_deflate, mod_setenvif, mod_headers, mod_filter, mod_mime

    this is the exact error I’m getting
    Gzip is not working properly:

    – Your server may not have the “deflate” module enabled (mod_deflate for Apache, ngx_http_gzip_module for NGINX).
    – Contact your host. If deflate is enabled, ask why all .htaccess or nginx.conf compression rules are not being applied.

    after checking my htaccess file I can see that coding entered by Hummingbird.

    My WordPress Version 4.9.8
    Hummingbird version Version 1.9.1
    server OS Centos 7.5
    web server Apache

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

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

    (@wpmudev-support8)

    Hey @himala76,

    Hope you’re well.

    When I check your URL with services like https://checkgzipcompression.com/ they are showing Gzip is not enabled too. Can you please make sure all these codes are on your .htaccess file;

    <IfModule mod_deflate.c>
    	SetOutputFilter DEFLATE
        <IfModule mod_setenvif.c>
            <IfModule mod_headers.c>
                SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
                RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
            </IfModule>
        </IfModule>
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE "application/atom+xml" \
                                          "application/javascript" \
                                          "application/json" \
                                          "application/ld+json" \
                                          "application/manifest+json" \
                                          "application/rdf+xml" \
                                          "application/rss+xml" \
                                          "application/schema+json" \
                                          "application/vnd.geo+json" \
                                          "application/vnd.ms-fontobject" \
                                          "application/x-font-ttf" \
                                          "application/x-font-opentype" \
                                          "application/x-font-truetype" \
                                          "application/x-javascript" \
                                          "application/x-web-app-manifest+json" \
                                          "application/xhtml+xml" \
                                          "application/xml" \
                                          "font/eot" \
                                          "font/opentype" \
                                          "font/otf" \
                                          "image/bmp" \
                                          "image/svg+xml" \
                                          "image/vnd.microsoft.icon" \
                                          "image/x-icon" \
                                          "text/cache-manifest" \
                                          "text/css" \
                                          "text/html" \
                                          "text/javascript" \
                                          "text/plain" \
                                          "text/vcard" \
                                          "text/vnd.rim.location.xloc" \
                                          "text/vtt" \
                                          "text/x-component" \
                                          "text/x-cross-domain-policy" \
                                          "text/xml"
    
        </IfModule>
        <IfModule mod_mime.c>
            AddEncoding gzip              svgz
        </IfModule>
    </IfModule>

    Cheers,
    Oguz

    Thread Starter himala76

    (@himala76)

    Hi Oguz

    This is the code I have on my .htaccess

    # BEGIN WP-HUMMINGBIRD-GZIP
    <IfModule mod_deflate.c>
    	SetOutputFilter DEFLATE
        <IfModule mod_setenvif.c>
            <IfModule mod_headers.c>
                SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
                RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
            </IfModule>
        </IfModule>
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE "application/atom+xml" \
                                          "application/javascript" \
                                          "application/json" \
                                          "application/ld+json" \
                                          "application/manifest+json" \
                                          "application/rdf+xml" \
                                          "application/rss+xml" \
                                          "application/schema+json" \
                                          "application/vnd.geo+json" \
                                          "application/vnd.ms-fontobject" \
                                          "application/x-font-ttf" \
                                          "application/x-font-opentype" \
                                          "application/x-font-truetype" \
                                          "application/x-javascript" \
                                          "application/x-web-app-manifest+json" \
                                          "application/xhtml+xml" \
                                          "application/xml" \
                                          "font/eot" \
                                          "font/opentype" \
                                          "font/otf" \
                                          "image/bmp" \
                                          "image/svg+xml" \
                                          "image/vnd.microsoft.icon" \
                                          "image/x-icon" \
                                          "text/cache-manifest" \
                                          "text/css" \
                                          "text/html" \
                                          "text/javascript" \
                                          "text/plain" \
                                          "text/vcard" \
                                          "text/vnd.rim.location.xloc" \
                                          "text/vtt" \
                                          "text/x-component" \
                                          "text/x-cross-domain-policy" \
                                          "text/xml"
    
        </IfModule>
        <IfModule mod_mime.c>
            AddEncoding gzip              svgz
        </IfModule>
    </IfModule>
    # END WP-HUMMINGBIRD-GZIP
    

    Thank you for your help and time on this
    Himala

    Hi @himala76,

    Can you please enquire with your hosting provider, as to why all .htaccess compression rules are not being applied when modules mod_deflate, mod_setenvif, mod_headers, mod_filter, mod_mime are enabled.
    They may be able to shed some light on the situation.

    Cheers,
    Calum

    Hello All,
    I have the same problem as above.
    I’ve done everything that ‘Hummingbird’ has told me including contacting server who replied
    “Hi Brian,
    I can confirm the necessary modules are enabled.
    Please refer to the following (particularly the section ‘Dynamic Content’) regarding setting up compression on a WordPress site:
    https://help.blacknight.com/hc/en-us/articles/212523089-GZIP-Compression-Deflate-Linux-Shared-Hosting
    Kind regards,”

    I have also copied the above code to my .htaccess and Hummingbird is still showing HTML – inactive.

    Any ideas?
    Regards,
    bjbarker

    Hi @barkerb003,

    Could you please share a link to your site?
    Also, have you tried pressing the ‘re-check status’ button?

    Best regards,
    Anton

    Hello @himala76

    Hope you’re doing well!

    We’ve not heard from you in a while. I’ve marked this ticket as resolved for now, but if you need anything else at all, we’re here for you, please just reopen the ticket or create a new one.

    Have a good day and take care!

    Cheers,
    Nastia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Gzip is not working properly for HTML’ is closed to new replies.