GZIP active only for html (no text compression for css, js…)

[ad_1]

Hello! On my website I have activated “Compress pages…”. Unfortunately, GZIP is working only with the home page, but all the other assets were uncompressed (I tested them here: https://www.giftofspeed.com/gzip-test/). I have tried multiple times with no results. I also tried w3 total cache, which immediately worked compressing all assets.

Since I really would prefer to use WP Super cache, I ended up adding this to htacces:

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE text/javascript

AddOutputFilterByType DEFLATE text/xml

etcetera...

My question is: is this behaviour to be expected? Does WP Super cache compress only the html of the pages? Is it possible to activate text compression globally, or should I always modify the htaccess file?

Thanks a lot for your help!

Ernesto

  • This topic was modified 13 hours, 57 minutes ago by expansion8933.
  • This topic was modified 13 hours, 56 minutes ago by expansion8933. Reason: typos

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer