1

所以 HTTP/2 增加了我想要利用的性能。由于各种原因,我不喜欢连接我的 javascript,而且 HTTP/2 无论如何都会使这变得不必要。

但。我正在开发一个将部署在客户本地网络中的 web 应用程序。因此我不能拥有 SSL(域和 IP 地址都不是固定/已知的)。现在 Mozilla 和 Chrome 表示他们将只支持带有 TLS 的 HTTP/2。要在没有浏览器警告的情况下实现这一点,我需要适当的证书,而这是我无法拥有的。那么这是否意味着 HTTP/2 对于 Intranet 应用程序来说已经死了?

4

1 回答 1

0

There are a few scenarios where using HTTP/2 without SSL makes a lot of sense. Relatively secure intranets is one of them, and website development is another. That said, you can still use HTTP/2 in your intranet by deploying SSL, and it is actually easier and cheaper in an intranet.

Usually there is much more control in an intranet, without any implied monetary cost. For example, you can setup a simple local DNS server (like DNSMasq or the one built-in into Windows) to have domains pointing to ip addresses, and configure, through DHCP, those addresses to be static.

The certificates issue is certainly more tricky. You can use the internal Certificate Authority of your client, if they have one already, or set it up for them.

And finally, if your client is so small that all the computers that will use your application are in the same building than the server, don't bother neither concatenating the files nor using HTTP/2.

于 2015-10-07T06:04:42.683 回答