不知道什么时候加上的。印象里一年前仍然是除登陆是 HTTPS 外其他都会被踢回 HTTP 的状况,现在似乎是所有页面都会跳到 HTTPS 了。
总之值得赞美一下。
$ curl -v http://www.douban.com
* Rebuilt URL to: http://www.douban.com/
* Trying 211.147.4.31...
* Connected to www.douban.com (211.147.4.31) port 80 (#0)
> GET / HTTP/1.1
> Host: www.douban.com
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 307 Temporary Redirect
< Server: dae
< Date: Sun, 13 Mar 2016 03:03:49 GMT
< Content-Type: text/html
< Content-Length: 178
< Connection: keep-alive
< Keep-Alive: timeout=10
< Location: https://www.douban.com/
< Strict-Transport-Security: max-age=0;
<
小遗憾是 HSTS 被显式关闭了,希望等条件成熟时能打开。