Problem with gzip compression
Hi from Poland
I’m new in this forum. I run shop with ThirtyBees 1.0.3 cms and Warehouse theme from IqitCommerce on VPS - koraledrewniane.pl
Everything works great for me until i started my site seo optimization.
All my CCC settings are turned on. The problem is when i run page analysis on gtmetrics.com. Google Speed score says to enable gzip compression on two files:
I have mod_deflate enabled on server.
What can be wrong?
your nginx (reverse proxy?) server is probably not configured correctly. You can read more about this here.
Note: If you use nginx in front of apache server then you don’t need to have mod_deflate enabled on apache at all. That will have negative impact on overall performance. Let nginx gzip this instead.
Thanks @datakick for the answear. I’ll read about that.
@datakick this is content of my nginx.conf file:
#error_log logs/error.log notice;
#error_log logs/error.log info;
# For user configurations not maintained by DirectAdmin. Empty by default.
and my nginx-gzip.conf file:
gzip_buffers 16 8k;
Everything seems to be ok.
try to set
gzip_http_version 1.0, or alternatively
gzip_http_version 1.0- this could help, according to this article
Setting gzip_http_version 1.0 doesn’t change anything, still the same problem.
I’ve just tried your configuration on my test server and it works just fine.
Well, what strange is that there’s a typo in
gzip_min_lenghtthat needed to be fixed first, otherwise nginx failed to restart. How come your server managed to restart with this typo in config file? Is the nginx-gzip.conf file actually included ? And did you actually restart nginx to reload settings?
Yes, there was a mistake. I had changed it to gzip_min_length and of course restarted nginx. Gtmetrix still show the same problem with compression.
Do you use Plesk?
No, DirectAdmin, but i also have access by SSH.
The problem is solved.
I forced my server administrator to resolve it. He removed this lines from .htaccess:
and add this:
I dont’t know why but it works.