我还没有找到关于标准是否允许重复HTTP响应头的任何规范,但我需要知道这是否会导致兼容性问题.
假设我有一个像这样的响应头:
HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5
Cache-Control: no-cache
Cache-Control: no-store
Location: http://localhost:9876/foo.bar
Content-Language: en-US
Content-Length: 0
Date: Mon, 06 Dec 2010 21:18:26 GMT
Run Code Online (Sandbox Code Playgroud)
请注意,有两个Cache-Control标头具有不同的值.浏览器是否总是将它们视为"Cache-Control:no-cache,no-store"?
http-headers ×1