Can I change all my http:// links to just //?

后端 未结 7 1500
后悔当初
后悔当初 2020-11-22 01:12

Dave Ward says,

It’s not exactly light reading, but section 4.2 of RFC 3986 provides for fully qualified URLs that omit protocol (the HTTP or HTTPS) a

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 01:34

    The question of whether one could change all their links to be protocol-relative may be moot, considering the question of whether one should do so. According to Paul Irish:

    2014.12.17: Now that SSL is encouraged for everyone and doesn’t have performance concerns, this technique is now an anti-pattern. If the asset you need is available on SSL, then always use the https:// asset.

提交回复
热议问题