We are using Centos Web Panel.
Our Server information are mentioned below.
Apache version: Apache/2.4.25
PHP version: 5.6.30
We have enabled gzip as per the article
http://forum.centos-webpanel.com/informations/activating-gzip-mod_deflate-and-enabling-caching-on-apache/After enabling the module, when I do curl request, sometimes gzip is working and sometimes, its not.
=====
curl -I -H "Accept-Encoding: gzip"
http://domain.tld/main.cssHTTP/1.1 200 OK
Date: Tue, 09 May 2017 05:51:18 GMT
Server: Apache/2.4.25 (Unix) OpenSSL/1.0.1e-fips
Last-Modified: Thu, 04 May 2017 07:08:11 GMT
ETag: "c6cfc-54ead6f892950-gzip"
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
=====
===
curl -I -H "Accept-Encoding: gzip"
http://domain.tld/main.cssHTTP/1.1 200 OK
Date: Tue, 09 May 2017 05:53:47 GMT
Server: Apache/2.4.25 (Unix) OpenSSL/1.0.1e-fips
Last-Modified: Thu, 04 May 2017 07:08:11 GMT
ETag: "c6cfc-54ead6f892950"
Accept-Ranges: bytes
Content-Length: 814332
Cache-Control: public
Content-Type: text/css
===
We are running with "CWP version: 0.9.8.231 ". We have checked the website on "
https://checkgzipcompression.com". It also sometimes reports that gzip enabled and sometimes gzip not enabled.
Can someone please help me out to resolve the issue?