Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9167723
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类:

2012-11-22 15:41:15

网站速度优化模块HttpCompressionModule

为了优化的访问速度,准备采用HttpCompressionModule 6对传输数据进行压缩,下载了HttpCompressionModule 6 , 并按照示例程序中的web.config配置了的web.config



 
  


  
        

     
    
 
   
   
 

 
 
 
 
   
   
     
       
       
       
     

     
       
     

   

 

 
    
    
    
    
 
        
    

 
  
   
  
 
 

        

   
   

            traceMode="SortByTime"
  localOnly="true"
    />

 
                mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
            cookieless="false"
            timeout="20"
    />

   
    


 
 
    browser=Gecko
    type=${type}
    frames=true
    tables=true
    cookies=true
    javascript=true
    javaapplets=true
    ecmascriptversion=1.5
    w3cdomversion=1.0
    css1=true
    css2=true
    xml=true
    tagwriter=System.Web.UI.HtmlTextWriter
   
      version=${version}
      majorversion=${major}
      minorversion=${minor}
     
        beta=true
     

   

 

 
 
 
    browser=AppleWebKit
    version=${version}
    majorversion=${major}
    minorversion=0.${minor}
    frames=true
    tables=true
    cookies=true
    javascript=true
    javaapplets=true
    ecmascriptversion=1.5
    w3cdomversion=1.0
    css1=true
    css2=true
    xml=true
    tagwriter=System.Web.UI.HtmlTextWriter
   
      type=${type}
   

 

 
 
    browser=Konqueror
    version=${version}
    majorversion=${major}
    minorversion=${minor}
    platform=${platform}
    type=Konqueror
    frames=true
    tables=true
    cookies=true
    javascript=true
    javaapplets=true
    ecmascriptversion=1.5
    w3cdomversion=1.0
    css1=true
    css2=true
    xml=true
    tagwriter=System.Web.UI.HtmlTextWriter
 

 
 
    
   
      
        
      
        
         
      
         
  
    
   
      

    
 
      
   
      
   
 
   
   
   
         
       
   
 
       
     
         
      

             
         
            
        
 
      
    
    

 

 

使用效果:
使用HttpCompressionModule自带的Fetch工具进行测试,测试结果如下:
compression.png

测试结果说明:
第一行数据是未使用HttpCompressionModule的测试结果。
第二行数据是使用deflate压缩算法进行压缩后的测试结果。
第二列数据是Web服务器传递到浏览器的文件大小。很明显,压缩后传输数据大大减少,有效地节约了带宽。
TTFB
—首字节平均响应时间(Gets the number of milliseconds that have passed before the first byte of the response was received.
TTLB
—末字节平均响应时间(Gets the number of milliseconds that passed before the last byte of the response was received.
Transit
—传输数据到浏览器的时间。
从测试结果可以看出, 采用HttpCompressionModule后访问速度有明显改善。

 

作者: 自由、创新、研究、探索……
出处:http://shanyou.cnblogs.com/
版权:本文版权归作者和博客园共有
转载:欢迎转载,为了保存作者的创作热情,请按要求【转载】,谢谢
要求:未经作者同意,必须保留此段声明;必须在文章中给出原文连接;否则必究法律责任
阅读(616) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~