Title: http 301 302 307之间的区别 · Issue #154 · sisterAn/JavaScript-Algorithms · GitHub
Open Graph Title: http 301 302 307之间的区别 · Issue #154 · sisterAn/JavaScript-Algorithms
X Title: http 301 302 307之间的区别 · Issue #154 · sisterAn/JavaScript-Algorithms
Description: 301/302/303/307/308的区别 301,302是http1.0的内容,303、307、308是http1.1的内容。 301和302本来在规范中是不允许重定向时改变请求方法的(将POST改为GET),但是许多浏览器却允许重定向时改变请求方法(这是一种不规范的实现)。 303的出现正是为了给上面的301,302这种行为作出个规范(将错就错吧),也就是允许重定向时改变请求方法。此外303响应禁止被缓存。 大多数的浏览器处理302响应时的方式恰恰就是上述规范要求...
Open Graph Description: 301/302/303/307/308的区别 301,302是http1.0的内容,303、307、308是http1.1的内容。 301和302本来在规范中是不允许重定向时改变请求方法的(将POST改为GET),但是许多浏览器却允许重定向时改变请求方法(这是一种不规范的实现)。 303的出现正是为了给上面的301,302这种行为作出个规范(将错就错吧),也就是允许重定向时改变请求方法。此外...
X Description: 301/302/303/307/308的区别 301,302是http1.0的内容,303、307、308是http1.1的内容。 301和302本来在规范中是不允许重定向时改变请求方法的(将POST改为GET),但是许多浏览器却允许重定向时改变请求方法(这是一种不规范的实现)。 303的出现正是为了给上面的301,302这种行为作出个规范(将错就错吧),也就是允许重定向时改变请求方法。此外...
Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/154
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"http 301 302 307之间的区别","articleBody":"#### 301/302/303/307/308的区别\r\n\r\n301,302是http1.0的内容,303、307、308是http1.1的内容。\r\n\r\n301和302本来在规范中是**不允许**重定向时改变请求方法的(将POST改为GET),但是许多浏览器却**允许重定向时改变请求方法**(这是一种不规范的实现)。\r\n\r\n303的出现正是为了给上面的301,302这种行为作出个规范(将错就错吧),也就是**允许重定向时改变请求方法**。此外303响应禁止被缓存。\r\n\r\n 大多数的浏览器处理302响应时的方式恰恰就是上述规范要求客户端处理303响应时应当做的,所以303基本用的很少,一般用302。\r\n\r\n307和308的出现也是给上面的行为做个规范,不过是**不允许重定向时改变请求方法**。\r\n\r\n\u003ctable border=\"0\"\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd\u003e\u003c/td\u003e\u003ctd\u003e\u003cp\u003ePermanent\u003c/p\u003e\u003c/td\u003e\u003ctd\u003e\u003cp\u003eTemporary\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\u003cp\u003eAllows changing the request method from POST to GET.\u003c/p\u003e\u003c/td\u003e\u003ctd\u003e301\u003c/td\u003e\u003ctd\u003e302\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\u003cp\u003eDoes not allow changing the request method from POST to GET.\u003c/p\u003e\u003cp class=\"newpage\"\u003e\u003c/p\u003e\u003c/td\u003e\u003ctd\u003e308\u003c/td\u003e\u003ctd\u003e307\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/table\u003e\r\n\r\n\r\n**注:永久(Permanent)和临时(Temporary)的区别**\r\n\r\n永久是指原来访问的资源已经永久删除啦,客户端应该根据新的URI访问重定向。\r\n\r\n临时是指访问的资源可能暂时先用location的URI访问,但旧资源还在的,下次你再来访问的时候可能就不用重定向了。\r\n\r\n**故301与302的区别:**\r\n\r\n301表示搜索引擎在抓取新内容的同时也将旧的网址交换为重定向之后的网址;302表示旧地址A的资源还在(仍然可以访问),这个重定向只是临时地从旧地址A跳转到地址B,搜索引擎会抓取新的内容而保存旧的网址。","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2021-03-02T23:08:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/154/JavaScript-Algorithms/issues/154"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c0400866-c5ef-833e-ea3a-86b9c50f9e22 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80A0:23348E:22E9300:2E25B7C:696B14E1 |
| html-safe-nonce | a9c388a4318fa932182d288419ba79f420d44bf746369e3bd9a271bc801e96c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEEwOjIzMzQ4RToyMkU5MzAwOjJFMjVCN0M6Njk2QjE0RTEiLCJ2aXNpdG9yX2lkIjoiNjE3Nzc4NDQ1NjcxNDg1MTU1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | feaf32e637118ea3ac2c6cd8ff6333c87905d6b81fc9119350512f921d0c3a2d |
| hovercard-subject-tag | issue:820465677 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sisterAn/JavaScript-Algorithms/154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5f088ded1062bb77eabc33656af4352acd0cf1c0776db52fb0c268daf21eeb5/sisterAn/JavaScript-Algorithms/issues/154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5f088ded1062bb77eabc33656af4352acd0cf1c0776db52fb0c268daf21eeb5/sisterAn/JavaScript-Algorithms/issues/154 |
| og:image:alt | 301/302/303/307/308的区别 301,302是http1.0的内容,303、307、308是http1.1的内容。 301和302本来在规范中是不允许重定向时改变请求方法的(将POST改为GET),但是许多浏览器却允许重定向时改变请求方法(这是一种不规范的实现)。 303的出现正是为了给上面的301,302这种行为作出个规范(将错就错吧),也就是允许重定向时改变请求方法。此外... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sisterAn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/sisterAn/JavaScript-Algorithms git https://github.com/sisterAn/JavaScript-Algorithms.git |
| octolytics-dimension-user_id | 19721451 |
| octolytics-dimension-user_login | sisterAn |
| octolytics-dimension-repository_id | 252061924 |
| octolytics-dimension-repository_nwo | sisterAn/JavaScript-Algorithms |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 252061924 |
| octolytics-dimension-repository_network_root_nwo | sisterAn/JavaScript-Algorithms |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width