浏览器的 HSTS 策略
一切能通过 https 访问的网址,都用 https 来访问。
使用https 访问网址https://xxxxxxx:9999/,会被浏览器缓存。
之后使用http 访问网址http://xxxxxxx:9999/,浏览器会搜索缓存是否有https网址;如果有会被默认307(临时重定向)至https。
一切能通过 https 访问的网址,都用 https 来访问。
使用https 访问网址https://xxxxxxx:9999/,会被浏览器缓存。
之后使用http 访问网址http://xxxxxxx:9999/,浏览器会搜索缓存是否有https网址;如果有会被默认307(临时重定向)至https。