So I've got some warnings from Fiddler that I have bad urls in HTTP Location header and they are should be fully-qualified. Why it's so important and what issues that can lead to?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The old standard for HTTP/1.1 (RFC 2616 § 14.30) required that Location
be an absolute URI.
Implementation experience showed that this was not important, and many implementations allowed relative URIs in Location
, so the current standard (RFC 7231 § 7.1.2) allows relative URIs.