• Resolved darrenchu

    (@darrenchu)


    Hi,
    Firstly, thanks for a great plugin.

    So far, I’ve discovered just one function – GZIP – that hasn’t worked. I’ve confirmed w/ my webhost by going into WHM and seeing that the mod_deflate Apache module has been installed. However, after applying the Automatic htacess updating, I get the error that GZIP isn’t working. I also tried copy and pasting manually the code provided (in the plugin GZIP test page) into htacess, and have separately added the following at the top of my htaccess without any luck:

    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/x-font
    AddOutputFilterByType DEFLATE application/x-font-truetype
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/x-font-otf
    AddOutputFilterByType DEFLATE application/x-font-opentype
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/ttf
    AddOutputFilterByType DEFLATE font/otf
    AddOutputFilterByType DEFLATE font/opentype

    Looking fwd to any ideas,
    Much appreciated in advance,

    Darren

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @darrenchu,

    hope you’re doing well and thanks for reaching us! ??

    Can you also double check with your hosting provider that the
    zlib.output_compression
    is enabled?

    If it’s not, then turn this ON and re-check status in HummingBird -> GZIP compression.

    Warm regards,
    Dimitris

    Thread Starter darrenchu

    (@darrenchu)

    Hi Dimitris,
    Tks for the quick response!

    I turned on zlib.output_compression from a setting within Cpanel, and it allowed my domain to pass the checkgzipcompression website (https://checkgzipcompression.com/?url=https%3A%2F%2Ftradablepatterns.com%2F).

    However, from the Gzip Compression page of your plugin, I still see the same error as before:

    Gzip is not working properly:
    – Your server may not have the “deflate” module enabled (mod_deflate for Apache, ngx_http_gzip_module for NGINX).

    From https://gtmetrix.com/, gzip seems to be working for most of my site files, but still scores poorly w/ a E as a result of three 3rd party plugin files not compressing.

    The gzip test on https://nixcp.com/tools/gzip-test/ says my domain supports gzip.

    When I run tradablepatterns.com through https://whatsmyip.org/http-compression-test/, it says: An Unknown Error Has Occurred

    Let me know if you have any other ideas.
    Tks again!
    Darren

    @darrenchu,

    Please don’t forget to click “Re-check status” button once you make changes to your configuration. I have run a remote check and Gzip compression is working fine, Hummingbird should not be showing this error. Maybe it’s a cached version of the error from your host?

    Best regards,
    Anton

    Thread Starter darrenchu

    (@darrenchu)

    You’re right Anton!
    It appears the host had cached that file…after doing another Recheck status just now it shows GZIP works now!

    Tks again,
    Darren

    @darrenchu,

    Welcome! I will mark this thread as resolved. If you have any more questions – fell free to open another thread.

    Best regards,
    Anton

    Hi there. My GZip isn’t working for Javascript and CSS. Both “Filter” and “Deflate” are enabled in Plesk. Can’t seem to get the compression to work.

    My .htaccess looks like the following:

    <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
    # BEGIN WP-HUMMINGBIRD-CACHING
    <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|eot|ttf|otf|woff|svg)$”>
    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|eot|ttf|otf|woff|svg)$”>
    Header set Cache-Control “max-age=691200”
    </FilesMatch>

    <FilesMatch “\.(jpg|jpeg|png|gif|swf|webp)$”>
    Header set Cache-Control “max-age=691200”
    </FilesMatch>
    </IfModule>
    # END WP-HUMMINGBIRD-CACHING
    # 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

    Hi @raymundo824,

    In Plesk you need to add the Nginx configuration to the Nginx settings page in your control panel.

    Best regards,
    Anton

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GZIP – Your server may not have the “deflate” module enabled’ is closed to new replies.