如果您有 SSL 证书,为什么不对整个网站使用 https?
不久前有人问我这个问题,但没有一个好的答案...
为什么拥有 SSL 证书的网站不会在整个网站上使用 https:// 而不是 http: 有充分的理由吗? //
是否存在 SEO 问题?服务器的性能开销?
为了以防万一,我们使用 LAMP 堆栈。
谢谢!
I was asked this question not too long ago, and didn't have a good answer...
Is there a good reason why a site that has an SSL certificate wouldn't use https:// for their entire site rather than http://
Are there SEO issues? Performance overhead for the server?
Just in case it matters, we use LAMP stacks.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有几个原因:
,但请注意,许多网站都这样做。例如,我使用的一些银行总是
https
,即使对于不需要它的部分也是如此。A few reasons:
Note, however, that a lot of sites do do this. For example, several of the banks I use are always
https
, even for the parts that don't require it.使用 SSL/TLS 不再增加太多开销:http:// www.imperialviolet.org/2010/06/25/overclocking-ssl.html
(正如 @erickson 在本页的评论中所说,计算上最昂贵的部分是握手。总体来说很好的评论。)
我认为在某些情况下,您可能会损失性能,因为如果您关闭浏览器,浏览器往往不会将通过 HTTPS 获取的内容保留在文件缓存中(假设它是不应保留在磁盘上的敏感内容),因此您不会受益从浏览器的缓存中,并且必须重新加载内容。
Using SSL/TLS does no longer add very much overhead: http://www.imperialviolet.org/2010/06/25/overclocking-ssl.html
(As @erickson said in a comment on this page, the most computationally expensive part is the handshake. Good comment in general.)
I think you may get a loss in performance in some cases because browsers tend not to keep content obtained via HTTPS in the file cache if you close them (assuming that it's sensitive content that shouldn't be kept on disk), therefore you wouldn't benefit from the browser's cache and would have to reload the content.