如果您有 SSL 证书,为什么不对整个网站使用 https?

发布于 2024-09-18 17:05:14 字数 167 浏览 13 评论 0原文

不久前有人问我这个问题,但没有一个好的答案...

为什么拥有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

醉城メ夜风 2024-09-25 17:05:15

有几个原因:

  • 生成 SSL 内容需要一些额外的工作,因此繁忙网站的性能可能会成为一个问题
  • 大多数(全部?)浏览器停止发送引荐来源网址信息,并请求通过您的网站跟踪用户可能会更具挑战性
  • 可能 必须更加谨慎地提供页面,以使浏览器正确缓存它们
  • 如果页面是 SSL,则页面上加载的所有内容也应该是 SSL,以避免出现混合内容警告在浏览器中;在 SSL 下提供脚本、图像等依赖项并不总是很方便

,但请注意,许多网站都这样做。例如,我使用的一些银行总是 https,即使对于不需要它的部分也是如此。

A few reasons:

  • Generating SSL content takes some extra work so performance of a busy site could be an issue
  • Most (all?) browsers stop sending referrer info with requests to tracking users through your site could be more challenging
  • You might have to be more deliberate in how you serve pages to get browsers to cache them properly
  • If the page is SSL, all content loaded on the page should be SSL, too, to avoid mixed-content warnings in the browser; serving dependencies like scripts, images, etc. under SSL is not always convenient

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.

堇年纸鸢 2024-09-25 17:05:15
  1. 对于每个请求,您的数据都将被编码和解码,这将增加服务器上不必要的负载,并且还会增加您网站的响应时间。
  1. for each request your data will be encoded and and decoded this will increase unnecessary load on server and would also increase response time of ur site.
瀞厅☆埖开 2024-09-25 17:05:15

使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文