哪些浏览器支持307/308重定向,以及它们如何处理? [英] Which browsers support 307/308 redirects and how do they handle them?

查看:451
本文介绍了哪些浏览器支持307/308重定向,以及它们如何处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

307& 308重定向( https://tools.ietf.org/html/rfc7538 )被大多数人接受现代浏览器。

307 & 308 redirects (https://tools.ietf.org/html/rfc7538) is accepted by most modern browsers.

但是,在谷歌搜索很多之后,我找不到支持307/308重定向的浏览器版本列表。许多帖子如: HTTP状态代码308有何处理?只需询问是否支持308重定向。

However upon google-ing a lot, I am unable to find a list of browser versions that support 307/308 redirects. Many of the posts like: What's the deal with HTTP status code 308? simply ask if 308 redirects is supported or not.

我知道某些较旧的浏览器不支持307/308重定向( https://developer.mozilla.org/en-US/docs/Web/HTTP/Status / 308 ),但不清楚哪个浏览器版本不正确。

I am aware that some older browsers don't support 307/308 redirects (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308), but it's not clear which browser version doesn't.

所以我的问题是,哪个浏览器版本支持307/308重定向?

So my question is, which browser versions support 307/308 redirects?

旧版浏览器还如何处理此状态代码?他们只是失败了吗?

Also how do older browser handle this status code? Do they just fail?

推荐答案

截至2018年2月20日,由于缺乏支持,甚至不是所有现代/受支持的浏览器都支持它对于Windows 7& 8.1上的IE 11:

As of 20 Feb 2018, not even all modern/supported browsers support it due to lack of support for IE 11 on Windows 7&8.1:


  • 失败-Windows上的IE 11(版本11.0.9600.18893) 7.在站点中使用308时,浏览器似乎只是挂起而不加载任何内容。 截至2018年7月25日,此操作仍旧失败(版本11.0.9600.19035)-经过检查,以防万一MS决定为开发人员提供青睐。

  • 通过-Windows 10上的IE 11(版本11.786.15063.0)

  • 通过-Windows 10上的Edge(版本40.15063.674.0)

  • 通过-分别在Windows 7和Mac OS 11.6上的Chrome(版本63.0.3239.132和63.0.32.132)

  • 通过-Mac OS 11.6上的Opera(版本50.0.2762.67)

  • 通过-Firefox(版本54.0.4和47.0.2) )分别在Mac OS 11.6和Windows 7上

  • Pass -在Mac OS 11.6上的Safari(版本11.0.3)

  • Fail - IE 11 (Version 11.0.9600.18893) on Windows 7. On using a 308 in a site, the browser just appears to hang and not load anything. As of 25 July 2018, this is still failing (Version 11.0.9600.19035) - checked just in case, you know, MS decided to do the world of devs a favour.
  • Pass - IE 11 (Version 11.786.15063.0) on Windows 10
  • Pass - Edge (Version 40.15063.674.0) on Windows 10
  • Pass - Chrome (Versions 63.0.3239.132 and 63.0.32.132) on Windows 7 and Mac OS 11.6 respectively
  • Pass - Opera (Version 50.0.2762.67) on Mac OS 11.6
  • Pass - Firefox (Versions 54.0.4 and 47.0.2) on Mac OS 11.6 and Windows 7 respectively
  • Pass - Safari (Version 11.0.3) on Mac OS 11.6

您可以在此处测试浏览器是否支持308重定向: http ://webdbg.com/test/308/

You can test if your browser supports 308 redirects here: http://webdbg.com/test/308/

建议使用301或307作为当前解决方案,直到IE和/或Wind ows 7& 8.1-造成了惨痛而痛苦的死亡(由于Microsoft尚未计划在Windows 7 / 8.1上向 ever 添加308支持IE)。

Suggest using 301 or 307 as the current solution until IE and/or Windows 7&8.1- dies a horrible and painful death (As Microsoft are not planning on ever adding 308 support to IE on Windows 7/8.1).

[2020年1月29日编辑]因此,对Windows 7的正式支持于本月初(确切地说是1月14日)结束,并且使用此平台的用户现在为强烈建议升级到Win10,因此希望会急剧下降在使用情况统计

So official support for Windows 7 ended earlier this month (on 14 Jan to be precise) and users on this platform are now being strongly encouraged to upgrade to Win10 so expect to see a precipitous drop in usage statistics.

这篇关于哪些浏览器支持307/308重定向,以及它们如何处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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