Gzip compression enabled but not working




Wordpress LScache Plugin: Gzip compression enabled but not working

Last Updated on: Wed, 15 Apr 2026 00:00:02
Have been made to understand that LiteSpeed Cache plugin is a full page cache plugin (https://wordpress.org/support/topic/known-supported-plugins/#post-8885086). Now, even though gzip compression is enabled on my LiteSpeed ? powered server, the effect of the compression is still not visible on my websites pages. A gtmetrix (dot com) scans of my web pages, however, give Enable gzip compression the grade F , which supposes that gzip compression is not enabled (even though enabled as shown above.). It appears like the LiteSpeed Cache plugin is not well in sync with my LS powered server. Would appreciate a feedback from the LiteSpeed Cache plugin team on what to do next. This topic was modified 5 years, 8 months ago by nceebob. Not sure if gtmetrix added accept-encoding header. When you visit by your browser, did you get a gzip response? Check it from here: Also, can you give an url for us to test it? Another thing to be aware is your Max Static File Size is too small. Any size that is larger than 2k wont be compressed. I believe your web pages are larger than 2k usually. I dont get it well. Is it Max Static File Size > 2 or Max Static File Size < 2 that wont be compressed ? I have checked the headers on my site pages, and gzip is enabled: Request URL:http://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: rel=https://api.w.org/ Server:LiteSpeed Transfer-Encoding:chunked Vary:Accept-Encoding,Accept-Encoding,Accept-Encoding X-LiteSpeed-Cache-Control:no-cacheExpand 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? 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 visitors browser. 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, isnt it? 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 wont compress. Then change your max size from 1M to 1.6M, it will be gziped. Okay



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference