Skip to main content

GZIP validation inside WHM

Comments

5 comments

  • techAMIGO
    Hi toplisek, Yes, those curl commands can be executed in the terminal to see the site is enabled with GZIP and brotli compression. Also you could find of online checkers to find the compressions enabled in the site/server. Thanks.
    0
  • toplisek
    I have tested and it is without any result for the above query inside account.
    0
  • ecartz
    curl -X HEAD -I -sH 'Accept-encoding: gzip' Example Domain | grep -i content-encoding
    The header is Content-Encoding, so you need to use grep -i to get a match with content-encoding. The easy way to diagnose something like this is to simply remove the pipe to grep part. Then you get feedback like [quote] HTTP/1.1 200 OK Content-Encoding: gzip Accept-Ranges: bytes Age: 333888 Cache-Control: max-age=604800 Content-Type: text/html; charset=UTF-8 Date: Mon, 15 Aug 2022 05:17:11 GMT Etag: "3147526947" Expires: Mon, 22 Aug 2022 05:17:11 GMT Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT Server: ECS (chb/0286) X-Cache: HIT Content-Length: 648
    and it is obvious that content-encoding is not matching Content-Encoding.
    0
  • techAMIGO
    @toplisek, as ecartz said yes it seems you haven't added '-i' option in grep that will ignore cases, else you have simply add it as grep Content-Encoding or grep -i content-encoding.
    0
  • toplisek
    It works but I guess Pingdom Tools reports FALSE signal as GZIP shows 45/100 and after all tests cPanel works fine without any issue.
    0

Please sign in to leave a comment.