What is the difference between httpCompression and urlCompression?

两盒软妹~` 提交于 2019-12-20 10:23:03

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/3243037/what-is-the-difference-between-httpcompression-and-urlcompression

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!