Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:config:brotli:start [2020/03/31 02:20]
Joshua Reynolds Merged content from other pages & revised summary
litespeed_wiki:config:brotli:start [2024/03/01 14:50]
Jackson Zhang
Line 2: Line 2:
 Brotli is a compression algorithm which, much like gzip/​deflate,​ reduces both file size and page load time. Brotli compression is supported starting in LiteSpeed Web Server v5.2 and it is enabled by default for secure static pages and [[litespeed_wiki:​cache:​common:​gzip-brotli-automatic-conversion|non-ESI dynamic pages]]. Brotli is a compression algorithm which, much like gzip/​deflate,​ reduces both file size and page load time. Brotli compression is supported starting in LiteSpeed Web Server v5.2 and it is enabled by default for secure static pages and [[litespeed_wiki:​cache:​common:​gzip-brotli-automatic-conversion|non-ESI dynamic pages]].
  
-===== Disabling ​Brotli Compression Server Wide =====+===== Disable ​Brotli Compression Server Wide =====
 Beginning with LiteSpeed Web Server version 5.2, brotli, a new compression method, is now supported and enabled by default. ​ Beginning with LiteSpeed Web Server version 5.2, brotli, a new compression method, is now supported and enabled by default. ​
  
Line 17: Line 17:
  
 Brotli compression should now be disabled server wide. Brotli compression should now be disabled server wide.
 +
 +Beginning with LiteSpeed Web Server version 6.x, Brotli compression can not be disabled through web console anymore and you may still disable it through .htaccess as per domain basis. ​
  
 ===== Disable Brotli Compression on a Per Account/​Domain Basis ===== ===== Disable Brotli Compression on a Per Account/​Domain Basis =====
Line 43: Line 45:
 To disable brotli compression via an ''​.htaccess''​ file, simply add: To disable brotli compression via an ''​.htaccess''​ file, simply add:
 <​code>​ <​code>​
-SetEnv no-brotli+<​IfModule LiteSpeed>​ 
 +    ​SetEnv no-brotli 
 +</​IfModule>​
 </​code>​ </​code>​
 This method allows brotli compression to be disabled for certain sub folders/​files without the need for a Graceful Restart. This method allows brotli compression to be disabled for certain sub folders/​files without the need for a Graceful Restart.
  
  • Admin
  • Last modified: 2024/03/04 20:14
  • by Lisa Clarke