• Resolved YSMR

    (@ysmr)


    After following another thread about this exact same issue, I was asked to start a new thread (about this exact same issue).

    At the recommendation of Nastia for another user, I did talk to my host GoDaddy about the Apache deflate module and they asked me to put the following in the .htaccess together with the Gzip script from Hummingbird:

    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript

    My site is https://www.Unboundedlife.com as well as https://www.ginkgosociety.org (same hosting on GoDaddy Apache server) and my .htaccess is as follows:

    RewriteOptions inherit
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
    # END WordPress

    # 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
    # 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


    I have tried all the previous recommendations including starting and restarting the module, creating a line in the php.ini file. All failed to resolve.
    I have 4 Wp sites and more coming that I want to upgrade to Hummingbird Pro, but not until this basic Gzip functionality can work in the free version.
    Thank you,
    Chris

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

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

    (@wpmudev-support8)

    Hey @ysmr,

    Hope you’re well.

    When I check your website Gzip with some online tools it looks like Gzip already activated. Is all three file type (HTML, JavaScript, CSS) Gzip not working or is there any exception? Also, did you click “RE-CHECK STATUS” button after adding that codes in .htaccess file?

    Cheers,
    Oguz

    Hello @ysmr

    Hope all is 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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gzip Compression not working for Apache’ is closed to new replies.