Do I need/want gzip compression when using HTTPS?
Does using HTTPS already include (transparent) content compression or should I still worr开发者_JS百科y 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?
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.
HTTPS only provides encryption. It does not compress the content. You should still negotiate gzip compression.
精彩评论