日期:2014-05-17  浏览次数:20418 次

iis使用了伪静态,html伪静态页GZIP都不生效问题,征求最终解决方案,不够再开贴加分

http://www.dbc.com/detail/22598.html gzip无效

http://www.dbc.com/detail/Detail.aspx?Id=37227 gzip有效


第一个解决方法:

有人用CompressionModule压缩模块,请大家用过这个组件的朋友,说一下使用情况,还有百度爬虫会不会有影响,会不会影响收录问题.


http://topic.csdn.net/u/20100727/10/3a0cbe48-d278-46f1-a4ba-22855618c49d.html


第二个解决方法:

MetaBase.xml配置如下:
能不能把静态文件的gzip压缩去掉,全部调用动态gzip。

MetaBase.xml配置如下:

<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/deflate"
HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
HcCreateFlags="0"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="FALSE"
HcDynamicCompressionLevel="9"
HcFileExtensions="htm
shtml
css
js
xml
txt"
HcOnDemandCompLevel="9"
HcPriority="1"
HcScriptFileExtensions="asp
aspx
html
asmx
dll
exe"
>
</IIsCompressionScheme>
<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/gzip"
HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
HcCreateFlags="1"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcDynamicCompressionLevel="9"
HcFileExtensions="htm
shtml
css
js
xml
txt"
HcOnDemandCompLevel="9"
HcPriority="1"
HcScriptFileExtensions="asp
aspx
asmx
dll
html
exe"
>
</IIsCompressionScheme>  

是不是系统自带的 %windir%\system32\inetsrv\gzip.dll是不是可靠些,或者有没有更好的方法,征求大家意见.


------解决方案--------------------
<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/deflate"
HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
HcCreateFlags="0"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcDynamicCompressionLevel="9"
HcFileExtensions="htm
html
txt
js
css
xml"
HcOnDemandCompLevel="9"
HcPriority="1"
HcScriptFileExtensions="htm
html
asp
dll
exe
aspx
axd"
>
</IIsCompressionScheme>
<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/gzip"
HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
HcCreateFlags="1"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcDynamicCompressionLevel="9"
HcFileExtensions="htm
html
txt
js
css
xml"
HcOnDemandCompLevel="9"
HcPriority="1"
HcScriptFileExtensions="htm
html
asp
dll
exe
aspx
axd"
>
</IIsCompressionScheme>

------解决方案--------------------
关 注
------解决方案--------------------
没接触过,不懂啊