I have been using Google Page Speed to help try speed up my site, which it rates pretty poorly.

Google suggest I Enable Compression and Minify. Well, these are defined in my WP-Config file. So either Google is not recognizing these are on, or the WP-Config isn't working?

Which should I trust?

enter image description here

  • You can look in the Network tab of Chrome developer tools and see the response headers, this will tell you if files are gzipped or deflated. I would first verify if the server is properly configured to use gzip.
    – Milo
    Mar 21, 2016 at 17:49

2 Answers 2


The enfoce_gzip constant, and the other in the same group in your config, actually refer to how wordpress should serve admin side related JS and CSS, and it seems like you are interested in the front end.

Setting gzip compression is something that you should do in your server configuration level (several options depending on the server, but for apache you will probably do it in the .htaccess file), the reason is that most files being served - CSS, JS, images, do not pass though wordpress code at all and therefor wordpress can not have any influence on how they are being served.


Gzip compression is defined at server level, not in wp


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.