New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第 128 题:Http 状态码 301 和 302 的应用场景分别是什么 #249
Comments
301:永久重定向; |
|
301重定向是永久的重定向,搜索引擎在抓取新的内容的同时也将旧的网址替换为了重定向之后的网址。 |
301: 永久重定向
302: 临时重定向
|
解释见mdn: https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status |
|
@buwanmei2 |
@ScholatLouis 我觉得这个说的不对,这个图忘了在哪里看到的了,大家只看使用场景就ok了 |
这个图在之前发过的那道301,302对seo有什么影响那道题里出现过 |
对于用户来说没有什么区别,都是从一个旧地址跳转到了一个新地址,内容也指向了新地址,主要区别在搜索引擎 |
可以看看百度首页 http://www.baodu.com 中的第一个请求(307) |
301: 永久重定向 |
同问 |
想问下,浏览器对301和302的缓存情况是怎样的?我的理解是: |
您的来信已收到,我会尽快回复,谢谢
|
No description provided.
The text was updated successfully, but these errors were encountered: