Title: HTML is not compressed
Last modified: August 24, 2018

---

# HTML is not compressed

 *  Resolved [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * (@rudolfl)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/html-is-not-compressed/)
 * Hi,
 * I have two issues:
    1. There is a warning “Gzip is not working properly:”. mod_deflate
   is enabled and when I run automated tests GZIP is actually working. So, not sure
   why warning is there.
 * 2. HTML is not being compressed according to Hummingbird. .htaccess is configured
   to use compression on ‘text/html’, but Hummingbird complains that this is not
   enabled. Hummingbird seem to be happy about JS and CSS.
 * Here is complete .htaccess:
    # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine
   On #RewriteCond %{HTTP_HOST} ^hatshop\.melbourne [NC] #RewriteCond %{HTTP_HOST}
   ^www.hatshop.melbourne [NC] #RewriteRule ^(.*)$ [https://hatshop.melbourne/$1](https://hatshop.melbourne/$1)[
   L,R=301] 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
 * Thanks,
    Rudolf
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-is-not-compressed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/html-is-not-compressed/#post-10620259)
 * Hi [@rudolfl](https://wordpress.org/support/users/rudolfl/),
 * 1. Gzip is enabled for all types. Hummingbird should be able to detect it correctly.
   Please try clicking the “re-check status” button.
 * 2. Hummingbird is reporting that browser caching is not working for HTML, because
   you have an Nginx+Apache setup. You need to add the appropriate browser caching
   rules to your nginx.conf file. Restart Nginx or reload the configs and click 
   on the “re-check status” button in the Browser caching module.
 * Best regards,
    Anton
 *  Thread Starter [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * (@rudolfl)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/html-is-not-compressed/#post-10621089)
 * Restarting Apache fixed all problems.
 * Rudolf

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

The topic ‘HTML is not compressed’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/html-is-not-compressed/#post-10621089)
 * Status: resolved