是什么httpCom pression和urlCom pression之间的区别? [英] What is the difference between httpCompression and urlCompression?

查看:113
本文介绍了是什么httpCom pression和urlCom pression之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

综观一个Web.config节点,我看到它同时允许httpCom pression和urlCom pression元素。什么是两者之间的区别?我只想做标准的gzip,我应该使用哪一个呢?

Looking at the node in a Web.config, I see that it allows both httpCompression and urlCompression elements. What's the difference between the two? I just want to do standard gzip, which one should I use?

推荐答案

urlCom pression 指定的什么以COM preSS和 httpCom pression 表示如何做COM pression。如果你在运行IIS7.5,你不需要指定任何,动态和静态COM pression默认情况下,都使用gzip的启用;这里有在 urlCom pression 和<一一些链接href=\"http://stackoverflow.com/questions/786638/how-can-i-get-gzip-com$p$pssion-in-iis7-working\">httpCom$p$pssion.

urlCompression specifies what to compress and httpCompression indicates how to do the compression. If you're running on IIS7.5, you don't need to specify anything, both dynamic and static compression are enabled by default, both use gzip; here are some links on urlCompression and httpCompression.

这篇关于是什么httpCom pression和urlCom pression之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆