为什么我每次访问 `http://www.iqueen.my` 都会看到 301 重定向?
Why do I see 301 redirect every time I visit `http://www.iqueen.my`?
我正在访问 URL 为 http://www.iqueen.my
的网站。这个网站 returns 一个 301 redirect
带我去 https://www.iqueen.my/
.
The HTTP response status code 301 Moved Permanently is used for
permanent URL redirection, meaning current links or records using the
URL that the response is received for should be updated. The new URL
should be provided in the Location field included with the response.
The 301 redirect is considered a best practice for upgrading users
from HTTP to HTTPS.
我猜这意味着将要重定向到的位置的信息缓存在浏览器中。因此,当我第二次在 chrome 中输入 http://www.iqueen.my
时,chrome 会直接将我带到 https://www.iqueen.my/
而无需访问 http://www.iqueen.my
.
但是我的猜测是错误的
如上图所示,我每次访问http://www.iqueen.my
时,chrome仍然访问http://www.iqueen.my
并获得301重定向。
chrome真的去拜访了http://www.iqueen.my
吗?
我是不是理解错了Moved Permanently
的意思?
chrome 开发人员工具中有一列说 301 重定向信息是从磁盘缓存中获取的。
这意味着chrome仍然进行301重定向,重定向到哪里的信息存储在chrome的缓存中。
我正在访问 URL 为 http://www.iqueen.my
的网站。这个网站 returns 一个 301 redirect
带我去 https://www.iqueen.my/
.
The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The new URL should be provided in the Location field included with the response. The 301 redirect is considered a best practice for upgrading users from HTTP to HTTPS.
我猜这意味着将要重定向到的位置的信息缓存在浏览器中。因此,当我第二次在 chrome 中输入 http://www.iqueen.my
时,chrome 会直接将我带到 https://www.iqueen.my/
而无需访问 http://www.iqueen.my
.
但是我的猜测是错误的
如上图所示,我每次访问http://www.iqueen.my
时,chrome仍然访问http://www.iqueen.my
并获得301重定向。
chrome真的去拜访了http://www.iqueen.my
吗?
我是不是理解错了Moved Permanently
的意思?
chrome 开发人员工具中有一列说 301 重定向信息是从磁盘缓存中获取的。
这意味着chrome仍然进行301重定向,重定向到哪里的信息存储在chrome的缓存中。