<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head>
<card title="IIS7配置Gzip压缩（启用动态、静态内容压缩）" id="card1">
<p> 游客</p><p>
标题:IIS7配置Gzip压缩（启用动态、静态内容压缩）<br/>
正文:<br/>
开启配置HTTP压缩（GZip）在IIS7中配置Gzip压缩相比IIS6来说实在容易了许多，而且默认情况下就是启用GZip压缩的。如果没有，则可以再功能视图下找到&amp;ldquo;压缩&amp;rdquo;项，进入之后就会看到&amp;ldquo;静态内容压缩&amp;rdquo;和&amp;ldquo;动态内容压缩&amp;rdquo;两个选项，勾上即可。配置启用压缩的文件类型及其他选项当开启GZip压缩之后，IIS并不是对所有内容都启用了压缩，而是有选择的进行压缩。遗憾的是，我们无法直接在IIS7管理器中配置这些压缩选项。我们首先需要在C:\Windows\System32\inetsrv\config文件夹下找到applicationhost.config文件，打开之后找到如下一节内容：&amp;lt;httpCompression directory=&amp;quot;%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files&amp;quot;&amp;gt;    &amp;lt;scheme name=&amp;quot;gzip&amp;quot; dll=&amp;quot;%Windir%\system32\inetsrv\gzip.dll&amp;quot; /&amp;gt;    &amp;lt;dynamicTypes&amp;gt;        &amp;lt;add mimeType=&amp;quot;text/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;        &amp;lt;add mimeType=&amp;quot;message/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;        &amp;lt;add mimeType=&amp;quot;application/x-javascript&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;        &amp;lt;add mimeType=&amp;quot;*/*&amp;quot; enabled=&amp;quot;false&amp;quot; /&amp;gt;    &amp;lt;/dynamicTypes&amp;gt;    &amp;lt;staticTypes&amp;gt;        &amp;lt;add mimeType=&amp;quot;text/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;        &amp;lt;ad<br/><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2204&amp;Page=1">[&lt;&lt;]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2204&amp;Page=1">[[1]]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2204&amp;Page=2">[2]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2204&amp;Page=3">[3]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2204&amp;Page=3">[&gt;&gt;]</a><br/>
<br/>
<a href="wap.asp?act=Com&amp;id=2204">查看评论(0)</a><br/>
<a href="wap.asp?act=AddCom&amp;inpId=2204">发表评论</a><br/><br/>

<br/>

<br/>
<a href="http://camnpr.com/wap.asp">首页</a>
</p>
</card>
</wml>