http.conf的设置

LoadModule deflate_module modules/mod_deflate.so 

<ifmodule mod_deflate.c>  
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml  
DeflateCompressionLevel 9   
SetOutputFilter DEFLATE   
#DeflateFilterNote Input instream   
#DeflateFilterNote Output outstream   
#DeflateFilterNote Ratio ratio   
#LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate   
#CustomLog logs/deflate_log.log deflate   
</ifmodule> 
 

注意apache在编译的时候需要添加

 

--enable-deflate
通过Yslo的网络-》 所有查看到的信息

Date Fri, 27 Nov 2009 02:52:02 GMT
Server Apache
Vary Accept-Encoding
Content-Encoding gzip
Content-Length 12973
Content-Type text/html; charset=utf-8
X-Cache MISS from ....
Proxy-Connection keep-alive

 

 

 

相关文章:

  • 2021-10-20
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-02-12
  • 2021-05-29
  • 2021-06-10
  • 2022-02-11
相关资源
相似解决方案