haproxy --压缩功能

配置选项
compression algo  <algorithm> ...         #启用http协议中的压缩机制,常用算法有gzip,deflate
<algorithm>支持下面类型:
    identity                                  #debug调试使用的压缩方式
    gzip                                      #常用的压缩方式,与各浏览器兼容较好
    deflate                                   #有些浏览器不支持
    raw-deflate                               #新式的压缩方式
 compression type <mime type> ...         #要压缩的文件类型


#示例:
compression algo gzip deflate
compression type text/plain text/html text/css text/xml text/javascript application/javascript

  

 

posted @ 2022-07-25 15:49  yuanbangchen  阅读(68)  评论(0编辑  收藏  举报