Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    Not sure if gtmetrix added accept-encoding header.

    When you visit by your browser, did you get a gzip response? Check it from here:

    View post on imgur.com

    Also, can you give an url for us to test it?

    • This reply was modified 7 years, 11 months ago by Hai Zheng?.
    Plugin Support Hai Zheng?

    (@hailite)

    Another thing to be aware is your Max Static File Size is too small. Any size that is larger than 2k won’t be compressed. I believe your web pages are larger than 2k usually.

    Thread Starter nceebob

    (@nceebob)

    I don’t get it well.
    Is it Max Static File Size > 2 or Max Static File Size < 2 that won’t be compressed ?

    I have checked the headers on my site pages, and gzip is enabled:

    Request URL:https://my-website.com/
    Request Method:GET
    Status Code:200 OK
    Remote Address:192.168.0.53:80
    Response Headers
    view source
    Accept-Ranges:bytes
    Cache-Control:no-cache, must-revalidate, max-age=0
    Connection:close
    Content-Encoding:gzip
    Content-Type:text/html; charset=UTF-8
    Date:Mon, 20 Mar 2017 19:34:30 GMT
    Expires:Wed, 11 Jan 1984 05:00:00 GMT
    Link:<https://my-website.com/wp-json/>; rel="https://api.w.org/"
    Server:LiteSpeed
    Transfer-Encoding:chunked
    Vary:Accept-Encoding,Accept-Encoding,Accept-Encoding
    X-LiteSpeed-Cache-Control:no-cache

    Maybe the reason why gtmetrix is not able to detect the compression, has to do with the gzip compression settings on my LS-powered server.

    What would be a typical Max Static File Size and Min Static File Size setting combination?

    • This reply was modified 7 years, 11 months ago by nceebob.
    Plugin Support Hai Zheng?

    (@hailite)

    You can just use the default value.

    Max Static File Size (bytes) : 1M
    Min Static File Size (bytes) : 300

    This way all pages that are under 1M bytes will be compressed and sent to visitor’s browser.

    Thread Starter nceebob

    (@nceebob)

    Have incorporated the above changes, namely:

    Max Static File Size (bytes) : 1M
    Min Static File Size (bytes) : 300

    ,my server was then given a graceful restart and the subsequent
    Enable gzip compression tests on gtmetrix are now graded with a “B”, which is much better.

    Would be nice if I could get a grade “A” test results from the above tests too. – I suppose that should be possible too, isn’t it?

    Plugin Support Hai Zheng?

    (@hailite)

    Good job.

    Gtmetrix should also give a detailed list for that graded “B”, it will tell you why it gives “B”. Prolly its caused by some resources that are out of that range to compress.

    Try to check the size and adjust your max size setting for gzip.

    e.g. if one file test.css or index.html is 1.5M, it won’t compress. Then change your max size from 1M to 1.6M, it will be gziped.

    Thread Starter nceebob

    (@nceebob)

    Okay

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Gzip compression enabled but not working’ is closed to new replies.