Apache Gzip设置

回溯

关注

阅读 55

2022-05-12

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​





精彩评论(0)

0 0 举报