Do I need/want gzip compression when using HTTPS?

白昼怎懂夜的黑 提交于 2019-12-10 15:14:34

问题


Does using HTTPS already include (transparent) content compression or should I still worry about negotiating with the browser whether to compress my Servlet output? If HTTPS already has compression, is it unconditional or does it need to be configured/negotiated/enabled?


回答1:


TLS by default doesn't enable compression, though it (compression) is defined in TLS standard and can be enabled if both parties support it. So it's better to not rely on it and request it on HTTP level.




回答2:


HTTPS only provides encryption. It does not compress the content. You should still negotiate gzip compression.



来源:https://stackoverflow.com/questions/4201291/do-i-need-want-gzip-compression-when-using-https

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