gzip compression not fully working on css and js files
-
Hi,
I’m using the latest versions of wordpress, bbpress and the plugins.I have the standard lines in my .htaccess (removed some of them before pasting here):
AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/xhtml+xml <...> AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/html <...> AddType x-font/otf .otf AddType x-font/ttf .ttf
By adding the above in Apache and running https://checkgzipcompression.com/ it tells me that I’m blessed and that my webserver is nginx
But running https://gtmetrix.com it complains that most of my css and js are not compressed !
Compressing https://www.example.com/wp-content/plugins/sitepress-multilingual-cms/res/css/language-selector.css?v=3.2.7 could save 4.7KiB (78% reduction). Compressing https://www.example.com/wp-content/plugins/ajax-event-calendar/css/jquery-ui-1.8.16.custom.css?ver=1.8.16 could save 18.9KiB (83% reduction). <...>
Any ideas on how to tune .htaccess ? Does it have to do with the ?ver that is added to the css ?
Thanks,
Pascal.
- The topic ‘gzip compression not fully working on css and js files’ is closed to new replies.