Support » Plugin: LiteSpeed Cache » Gzip compression

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @andisman,

    If you’re using LiteSpeed Web Server, then gzip and Brotli compression is usually enabled on a server level.

    If you’re using Apache, then you can add the following to your .htaccess file:

    <IfModule mod_deflate.c>
        SetOutputFilter DEFLATE
        <IfModule mod_setenvif.c>
            # Netscape 4.x has some problems...
            BrowserMatch ^Mozilla/4 gzip-only-text/html
    
            # Netscape 4.06-4.08 have some more problems
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
    
            # MSIE masquerades as Netscape, but it is fine
            # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    
            # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
            # the above regex won't work. You can use the following
            # workaround to get the desired effect:
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    
            # Don't compress images
            SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
        </IfModule>
    
        <IfModule mod_headers.c>
            # Make sure proxies don't deliver the wrong content
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    </IfModule>

    Yes I have litespeed server, but when I try to check like on:
    https://www.giftofspeed.com/gzip-test/

    it shows that I don’t have gzip compressed… as I am using shared hosting is there info in phpinfo(); function where I could check if gzip enabled or not?

    You can check it in the browser headers usually, but what you can do, is to submit your report number, and then we can take a look at it from our end!

    Also let us know the report number afterwards!

    • This reply was modified 1 year, 6 months ago by LucasRolff.

    Thanks Lucas!
    Report number: LRCIXUYI

    Will wait for your reply!

    < X-LiteSpeed-Cache: hit
    < Transfer-Encoding: chunked
    < Content-Encoding: gzip

    It seems to support gzip just fine, as well as Brotli.

    The testing site https://www.giftofspeed.com/gzip-test/ – it might be, that it’s actually accepting Brotli compression as well, but doesn’t match it correctly when telling whether gzip is enabled or not (Pingdom speed test has same issue currently).

    Using other sites to test gzip with, reveals that it’s all OK – such as https://varvy.com/tools/gzip/

    oh ok, thank you very much!
    Have a great day!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Gzip compression’ is closed to new replies.