http压缩和url压缩有什么区别?
查看 Web.config 中的节点,我发现它允许 httpCompression 和 urlCompression 元素。两者有什么区别?我只想执行标准 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
url压缩指定要压缩的内容,http压缩指示如何进行压缩。如果您运行在IIS7.5上,则无需指定任何内容,默认情况下启用动态和静态压缩,均使用gzip;这里有一些关于 urlCompression 和 http压缩。
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.