FineUI/FineUI.Examples/config/enable_gzip_iis6.htm
三生石上 f5a07a4e99 v4.2.3
2016-01-10 01:15:27 -05:00

64 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<title>如何在IIS6中启用GZIP压缩</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
body
{
font-size: 13px;
}
ol li
{
margin-bottom: 20px;
}
.title
{
font-size: 14px;
font-weight: bold;
}
</style>
</head>
<body class="f-body">
<div class="title">
如何在IIS6中启用GZIP压缩
</div>
<div style="margin: 10px 0;">
启用GZIP压缩可以大大减少网络传输的数据量比如使用FineUI v3.x的网站首次下载的JavaScript由未启用的650K左右减少为启用GZIP后的250k左右。
</div>
<ol>
<li>展开IIS管理器在网站菜单上点击右键点击属性菜单选择服务选项卡按下图选中启用压缩的复选框。
<br />
<img src="../res/images/enable_gzip_iis6_1.png" />
<br />
<img src="../res/images/enable_gzip_iis6_2.png" />
<br />
</li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en">这里</a>下载IIS
6.0资源工具包安装后运行Metabase Explorer。
<br />
<img src="../res/images/enable_gzip_iis6_3.png" />
<br />
</li>
<li>展开 LM>W3SVC>Filters>Compression你需要如下编辑 gzip 和 deflate 两个菜单。
<br />
HcScriptFileExtensions:asp,dll,aspx,axd,asmx,php,exe
<br />
HcDynamicCompressionLevel:10
<br />
HcFileExtensions:htm,html,js,css
<br />
<img src="../res/images/enable_gzip_iis6_4.png" />
<br />
</li>
<li>重启IIS。
<br />
<img src="../res/images/enable_gzip_iis6_5.png" />
</li>
</ol>
<div>
原文链接:<a href="http://www.codeproject.com/Articles/31073/Enable-Gzip-compression-in-IIS-6-0-for-ASP-NET-2-0">http://www.codeproject.com/Articles/31073/Enable-Gzip-compression-in-IIS-6-0-for-ASP-NET-2-0</a>
</div>
</body>
</html>