Title: JS and CSS not gzip enabled
Last modified: February 14, 2021

---

# JS and CSS not gzip enabled

 *  [djeah](https://wordpress.org/support/users/djeah/)
 * (@djeah)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/)
 * Hi,
 * I like your plugin. But I see that the JS and CSS are not GZIP compressed. In
   response headers I see the `content-encoding: br` for `Request URL: [https://www.myheartontravel.com/wp-content/cache/breeze-minification/js/breeze_960f8d4326677dddc69204264c090b58.js](https://www.myheartontravel.com/wp-content/cache/breeze-minification/js/breeze_960f8d4326677dddc69204264c090b58.js)
   `
   and`Request URL: [https://www.myheartontravel.com/wp-content/cache/breeze-minification/css/breeze_0e474f44788338c3ce6723555af9bddd.css](https://www.myheartontravel.com/wp-content/cache/breeze-minification/css/breeze_0e474f44788338c3ce6723555af9bddd.css)`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjs-and-css-not-gzip-enabled%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14049954)
 * Could you please verify that GZIP compression rules add to your .htaccess file?
 *  Thread Starter [djeah](https://wordpress.org/support/users/djeah/)
 * (@djeah)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14060416)
 * [@adeelkhan](https://wordpress.org/support/users/adeelkhan/) Yes, I see the following
   piece of code in the .htaccess file:
 *     ```
       <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>
       ```
   
 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14061803)
 * The above code is not applied by Breeze. It means there are multiple plugins 
   installed in your application for the same purpose. Could you please verify that
   the “Gzip compression” option enabled at Breeze also disable the plugins which
   serve the above-mentioned code in .htaccess file?
 *  Thread Starter [djeah](https://wordpress.org/support/users/djeah/)
 * (@djeah)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14062303)
 * [@adeelkhan](https://wordpress.org/support/users/adeelkhan/) Yes, this above 
   code was added by Hummingbird Plugin last year, it’s been long since I uninstalled
   and deleted that plugin, but this value still remains in htaccess and no current
   plugin that I am using has any gzip compression options, but only Breeze, where
   it is enabled. So do you mean to say that Breeze did not add any gzip code to
   my htaccess till now? If not then how does it work to get it enabled?
 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14082865)
 * It’s not difficult first you remove the Gzip compression rules which insert by
   your previous installed plugin then you will enable Gzip compression option by
   click on the option **Gzip Compression** under the Basic Options tab in Breeze.
 * For the sake of confirmation, you can find the code .htaccess file after enabling
   Gzip Compression through Breeze
 *  Thread Starter [djeah](https://wordpress.org/support/users/djeah/)
 * (@djeah)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14101306)
 * Hi [@adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * It seemed to me that I am using siteground and NGINX on top. Somehow GZIP rules
   being present in htaccess or not did not make any difference. I will test this
   today again. If not br is brotli and should be better than gzip I believe. So
   I am not much worried
 *  Thread Starter [djeah](https://wordpress.org/support/users/djeah/)
 * (@djeah)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14103868)
 * I tested it. I see that breeze added the below code. However, I still see that
   the content-encoding is `br` :
 *     ```
       # Begin GzipofBreezeWPCache
       SetEnv BREEZE_GZIP_ON 1
       <IfModule mod_deflate.c>
       	AddType x-font/woff .woff
       	AddOutputFilterByType DEFLATE image/svg+xml
       	AddOutputFilterByType DEFLATE text/plain
       	AddOutputFilterByType DEFLATE text/html
       	AddOutputFilterByType DEFLATE text/xml
       	AddOutputFilterByType DEFLATE text/css
       	AddOutputFilterByType DEFLATE text/javascript
       	AddOutputFilterByType DEFLATE application/xml
       	AddOutputFilterByType DEFLATE application/xhtml+xml
       	AddOutputFilterByType DEFLATE application/rss+xml
       	AddOutputFilterByType DEFLATE application/javascript
       	AddOutputFilterByType DEFLATE application/x-javascript
       	AddOutputFilterByType DEFLATE application/x-font-ttf
       	AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
       	AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
       </IfModule>
       # End GzipofBreezeWPCache
       ```
   
 *  [hitkodev](https://wordpress.org/support/users/hitkodev/)
 * (@hitkodev)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14178028)
 * [@djeah](https://wordpress.org/support/users/djeah/) Content encoding br means
   your server supports Brotli compression, which is a more recent alternative to
   gzip compression.
 * [https://hacks.mozilla.org/2015/11/better-than-gzip-compression-with-brotli/](https://hacks.mozilla.org/2015/11/better-than-gzip-compression-with-brotli/)

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

The topic ‘JS and CSS not gzip enabled’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

## Tags

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

 * 8 replies
 * 3 participants
 * Last reply from: [hitkodev](https://wordpress.org/support/users/hitkodev/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/js-and-css-not-gzip-enabled/#post-14178028)
 * Status: not resolved