HTTP 重定向:301(永久)与 302(临时) [英] HTTP redirect: 301 (permanent) vs. 302 (temporary)

查看:34
本文介绍了HTTP 重定向:301(永久)与 302(临时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

客户的行为是否应该有所不同?怎么样?

Is the client supposed to behave differently? How?

推荐答案

状态 301 表示资源(页面)永久移动到新位置.从现在开始,客户端/浏览器不应尝试请求原始位置,而是使用新位置.

Status 301 means that the resource (page) is moved permanently to a new location. The client/browser should not attempt to request the original location but use the new location from now on.

状态 302 表示资源暂时位于别处,客户端/浏览器应继续请求原始 url.

Status 302 means that the resource is temporarily located somewhere else, and the client/browser should continue requesting the original url.

这篇关于HTTP 重定向:301(永久)与 302(临时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆