Title: Mod_Deflate
Last modified: April 26, 2018

---

# Mod_Deflate

 *  Resolved [bradburyarchitecture](https://wordpress.org/support/users/bradburyarchitecture/)
 * (@bradburyarchitecture)
 * [8 years ago](https://wordpress.org/support/topic/mod_deflate/)
 * Hi,
 * I need help with the mod_deflate thing.
 * The error I am getting: [https://imgur.com/a/hSN3aqL](https://imgur.com/a/hSN3aqL)
 * Steps I have taken to fix it: I checked in the FTP to make sure in the .htpaccess
   file the following is showing [https://imgur.com/a/lUb6U9B](https://imgur.com/a/lUb6U9B)
 * I contacted my hosting provider to ask them what the error told me to ask and
   they replied with:
 * “It has been determined that mod deflate is enabled in our system. See the following:
 * DeflateFilterNote (mod_deflate.c)
    DeflateWindowSize (mod_deflate.c) DeflateBufferSize(
   mod_deflate.c) DeflateMemLevel (mod_deflate.c) DeflateCompressionLevel (mod_deflate.
   c)”
 * I dont know what to do now. My site performance is being greatly affected by 
   this problem of not being able to compress these files.
 * > [View post on imgur.com](https://imgur.com/a/lF3ZJ8l)
 * > [View post on imgur.com](https://imgur.com/a/B511XQF)
 * These are the plugins I have installed:
 * > [View post on imgur.com](https://imgur.com/a/rjfbtL9)
 * I am not sure if any of these are affecting the performance of the site.
 * The Theme I am using is: Mies [https://imgur.com/a/bMSON5x](https://imgur.com/a/bMSON5x)
 * I am new at making websites. This is my first [http://www.bradburyarchitecture.ca](http://www.bradburyarchitecture.ca).
   I dont understand coding. So in your explanation you could try to use simple 
   terms and steps by step I would really appreciate it. Assume I know nothing hahah
 * Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [8 years ago](https://wordpress.org/support/topic/mod_deflate/#post-10222408)
 * Hi [@bradburyarchitecture](https://wordpress.org/support/users/bradburyarchitecture/),
 * The first thing to check is that .htpaccess is just a typo in your message. The
   file should be named .htaccess. But I guess it’s just a typo…
 * The lines that you have in your .htaccess file will only be valid if your server
   type is Apache. When I tried to query your server, I did not get the server type
   in the response. That is strange. Perhaps, your host is hiding it. So the first
   thing I would do is contact the host and ask the following questions:
    1. What
   web server is your site running on? 2. Do they have Nginx working together with
   Apache?
 * Depending on their response, we can continue on debugging your issue.
 * Another easy thing you can try – do a small test and see if the directives in
   your .htaccess file are being parsed by the server.
 * Here’s how it’s done:
    1. Open up your .htaccess file in any FTP editor (not 
   with WordPress) 2. Right after <IfModule mod_filter.c> write in any word or sequence
   of letters/numbers. For example, 123 3. Save the file. Refresh your website in
   the browser. If you are getting a weird error, that means the lines have been
   parsed by the web server. That’s good news. Yes, if you get an error with this
   test – it’s good news ) 4. Remove the added text from the .htaccess file. Save
   it. Your site is back to normal. Don’t forget to remove the added text even if
   there was no error.
 * Will wait for the info, regarding your server type and if the .htaccess test 
   yielded an error or not.
 * Best regards,
    Anton
 *  Thread Starter [bradburyarchitecture](https://wordpress.org/support/users/bradburyarchitecture/)
 * (@bradburyarchitecture)
 * [8 years ago](https://wordpress.org/support/topic/mod_deflate/#post-10222533)
 * [@vanyukov](https://wordpress.org/support/users/vanyukov/)
 * Hi Anton, Not sure if I reply through here or the email so I will try both.
 * Yes it was a typo on my side.
 * the test: This is what is showing on my side and where i added the 123
 * DirectoryIndex index.php
 * # 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>
 * # 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>123** 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 AddHandler phpCGI .php Action phpCGI /
   cgi-bin/php5-cgi
 * # 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
 * No error occurred on the site.
 * Answering your questions from our host:
    1. What web server is the site running
   on? Apache_mod 2. Do they have Nginx working together with Apache? Only with 
   Apache
 * Thank you hope you can help.
 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [8 years ago](https://wordpress.org/support/topic/mod_deflate/#post-10223724)
 * Hi [@bradburyarchitecture](https://wordpress.org/support/users/bradburyarchitecture/),
 * No errors means that you do not have mod_filter installed on the host, and the
   rules applied inside that _If_ statement are not executed. Can you please ask
   your host if it’s possible to install or activate that module for your site? 
   Once that is done, try that test with the error again. If you get the error, 
   compression on your site should start working.
 * If host won’t install/activate that module, we’ll find a workaround.
 * Best regards,
    Anton
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [8 years ago](https://wordpress.org/support/topic/mod_deflate/#post-10270182)
 * Hello [@bradburyarchitecture](https://wordpress.org/support/users/bradburyarchitecture/)
 * It’s been a while since we’ve header back from you, so I’m marking this topic
   as resolved. Feel free to post back here, if more assistance is required. 🙂
 * Warm regards,
    Dimitris

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Mod_Deflate’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

## Tags

 * [deflate](https://wordpress.org/support/topic-tag/deflate/)
 * [gzip](https://wordpress.org/support/topic-tag/gzip/)
 * [mod_deflate](https://wordpress.org/support/topic-tag/mod_deflate/)

 * 4 replies
 * 3 participants
 * Last reply from: [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/mod_deflate/#post-10270182)
 * Status: resolved