IIS GZIP 实战
2016-08-05 18:22
274 查看
1.首先Enable 静态压缩和动态压缩 (安装IIS的时候有个性能里面)
2. IIS=>压缩->enable
3.更改applicationHost.config
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" minFileSizeForComp="2700">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="application/atom+xml" enabled="true" />
<add mimeType="application/xaml+xml" enabled="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" /> //动态
<add mimeType="*/*" enabled="false" />
</staticTypes>
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" /> //静态
</httpCompression>
4.重启IIS 服务
cmd -> iisreset /restart !!!!!!!!!!!!
2. IIS=>压缩->enable
3.更改applicationHost.config
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" minFileSizeForComp="2700">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="application/atom+xml" enabled="true" />
<add mimeType="application/xaml+xml" enabled="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" /> //动态
<add mimeType="*/*" enabled="false" />
</staticTypes>
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" /> //静态
</httpCompression>
4.重启IIS 服务
cmd -> iisreset /restart !!!!!!!!!!!!
相关文章推荐
- get post
- vim使用技巧
- 坚持#第6天~配置and游戏打包
- zookeeper入门及安装
- atomic nonatomic区别
- 用D3.js画树状图
- RFC3630 - TE Extensions to OSPF Version 2中文
- GDB动态库搜索路径
- STM32之SPI_FLASH
- Android Studio app变红叉
- grep简单使用
- Codeforces Round #365 (Div. 2) C 计算几何
- 手机归属地
- HDU 5802 Windows 10
- mysql 添加远程访问
- iOS开发内存优化之自动检测内存泄露,检查是否有循环引用,检查内存为何如此大,Block循环引用的检查
- 设计模式-行为型-模板方法模式(Template Method Pattern)
- 基于zookeeper的分布式锁实现
- java内存模型-重排序
- 元启发式算法相关文献