Skip to content

Does LiteSpeed support GZIP and Brotli compression?

Yes, LiteSpeed is capable of utilizing GZIP compression to help speed up your site. Litespeed handles compression natively, so you don’t need to install or configure any additional modules. You get all the benefits of mod_deflate without the configuration.

LiteSpeed supports both GZIP and Brotli compression, with Brotli offering better compression ratios but at a higher CPU cost. The server automatically selects the most efficient compression method based on client capabilities and server configuration.

No, mod_deflate is not needed on LiteSpeed servers as LiteSpeed handles compression natively. There are some applications that may look for mod_deflate to be present, but any warnings can be ignored as LiteSpeed provides the same functionality.

Do I need to specify compression in .htaccess?

Section titled “Do I need to specify compression in .htaccess?”

No, compression is enabled by default on LiteSpeed servers and you do not need to specify it in .htaccess.