Gzip compresses error

Hello there ,

I got this message :

gzip is not working properly:
- Your server may not have the "deflate" module enabled (mod_deflate for Apache, ngx_http_gzip_module for NGINX)
- Another plugin may be interfering with the configuration

Also the Smush pro keep getting error messages while smushing

Kindly check both , I want to deliver better performance without breaking the site

regards

  • James Morris

    Hello Magot John,

    I hope you are well today.

    It looks as though Gzip is partially enabled on your server. This is usually due to a minor misconfiguration in cPanel (or whichever hosting control panel you use).

    If you have cPanel, you will want to log in and go to "Optimize Website". This is usually under Software and Services. There, would you please verify that Compress All Content is selected? See screenshot: https://goo.gl/RI7ftQ

    If it is, then would you please try manually adding the following to your .htaccess file for your website?

    <IfModule mod_deflate.c>
        <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-javascript" \
                                          "application/x-web-app-manifest+json" \
                                          "application/xhtml+xml" \
                                          "application/xml" \
                                          "font/eot" \
                                          "font/opentype" \
                                          "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>

    Also the Smush pro keep getting error messages while smushing

    I just uploaded a 7.5MB+ image to your site and it was Smushted successfully. Could you please provide a little more detail on what error you're getting from Smush and with what image?

    Best regards,

    James Morris

  • Magot John

    Hello ,

    Thanks for fats reply.

    1- I am having problem with images already have on the media and the dashboard keep giving me notification about re-smushing them but keep failing.

    2- This my current htaccess ,

    # BEGIN WordPress

    # WPhtc: Begin Custom htaccess
    <IfModule mod_deflate.c>
    <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-javascript" \
    "application/x-web-app-manifest+json" \
    "application/xhtml+xml" \
    "application/xml" \
    "font/eot" \
    "font/opentype" \
    "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>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault A0

    <FilesMatch "\.(txt|xml|js)$">
    ExpiresDefault A691200
    </FilesMatch>

    <FilesMatch "\.(css)$">
    ExpiresDefault A691200
    </FilesMatch>

    <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$">
    ExpiresDefault A691200
    </FilesMatch>

    <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
    ExpiresDefault A691200
    </FilesMatch>
    </IfModule>

    <IfModule mod_headers.c>
    <FilesMatch "\.(txt|xml|js)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>

    <FilesMatch "\.(css)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>

    <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>

    <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>
    </IfModule>
    # WPhtc: End Custom htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    kindly give me the complete htaccess for complete performance . I use wp rocket , gave me B and B on GTmetrix but broke the website :disappointed:

    This last report with your plugin , can we improve it ?!
    https://gtmetrix.com/reports/www.magicallydeliciouscontent.com/8dryuPvB

  • James Morris

    Hello Magot John,

    I've just tried to check your site again and I'm seeing that you've deactivated Hummingbird. Have you decided to not use this plugin?

    After doing some tests with Smush and trying to bulk smush your images, I'm seeing that there's errors related to images that cannot be found. Looking at the paths of these images, I'm consistently seeing the string https://images-na.ssl-images-amazon.com/images/I/ which is an Amazon CDN URL.

    I looked around and I do not see any plugins installed that are configured to interface with Amazon, but perhaps I could have missed something?

    Just as a note, Smush Pro cannot smush images hosted on a CDN. It can smush images hosted locally on your server, or during the upload process, but not remotely hosted images.

    Do you have a CDN configured for your site?

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.