| Author | 
  | 
bagu
 
  
  Joined: 06 Jan 2011 Posts: 193 Location: France
  | 
 Posted: Tue 14 May '24 22:49    Post subject: Zstd support and use ? | 
     | 
 
  | 
 
Hello,
 
 
Does apache support zstd compression ? And, if yes, how to use it as prefered compression ?
 
 
Thanks | 
 
  | 
| Back to top | 
 | 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Wed 15 May '24 9:47    Post subject:  | 
     | 
 
  | 
 
No, it doesn't support it yet. deflate/gzip(zlib), and brotli. 
 
 
Example with brotli prefered
 
 
 	  | Code: | 	 		  
 
<IfModule mod_deflate.c>
 
        AddOutputFilterByType BROTLI;DEFLATE text/html text/plain text/xml text/php text/css text/js text/javascript text/javascript-x application/x-javascript font/truetype
 
        AddOutputFilterByType BROTLI;DEFLATE application/javascript
 
                AddOutputfilterByType BROTLI;DEFLATE application/vnd.mozilla.xul+xml
 
        DeflateCompressionLevel 9
 
</IfModule>
 
 | 	 
  | 
 
  | 
| Back to top | 
 | 
bagu
 
  
  Joined: 06 Jan 2011 Posts: 193 Location: France
  | 
 Posted: Wed 15 May '24 21:43    Post subject:  | 
     | 
 
  | 
 
Ok, thanks.
 
 
Hope it will be supported in the future. | 
 
  | 
| Back to top | 
 | 
zhangdaoming
 
 
  Joined: 08 Feb 2025 Posts: 3
 
  | 
 Posted: Sat 08 Feb '25 15:45    Post subject:  | 
     | 
 
  | 
 
 	  | bagu wrote: | 	 		  Ok, thanks.
 
 
Hope it will be supported in the future. | 	  
 
 
you need the https://github.com/foglede/mod_zstd   
 
 
and request @admin @Steffen Compile windows module 
 
 
zstd has fewer dependencies than brotli
 
 
and zstd support HTTP1 ,brotli at least Http 2
 
————
 
I correct brotli  Http1 support too
  Last edited by zhangdaoming on Tue 11 Feb '25 2:55; edited 1 time in total | 
 
  | 
| Back to top | 
 | 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 | 
| Back to top | 
 | 
zhangdaoming
 
 
  Joined: 08 Feb 2025 Posts: 3
 
  | 
 | 
| Back to top | 
 |