RedBot告诉我,我的一些严重错误 资产:
- 内容协商发生时,响应状态不同。
- If-None-Match条件请求返回404状态。 RED没有检查其他 因此,Content-Negotiation的各个方面。
我想调试一下,但我无法复制RedBot的错误。当我尝试时,我明白了:
# normal negotiated request
xxx@xxx:~$ curl -I -H 'Accept-Encoding:gzip' http://example.com/css/383010.css
HTTP/1.1 200 OK
Date: Wed, 09 Oct 2013 16:11:12 GMT
Vary: Accept-Encoding
Expires: Thu, 09 Oct 2014 16:11:16 GMT
Etag: "f41e1c3f"
Content-Encoding: gzip
Content-Type: text/css; charset=UTF-8
# RED says this has a 404?
xxx@xxx:~$ curl -I -H 'Accept-Encoding:' http://example.com/css/383010.css
HTTP/1.1 200 OK
Date: Wed, 09 Oct 2013 16:11:31 GMT
Vary: Accept-Encoding
Expires: Thu, 09 Oct 2014 16:11:31 GMT
Etag: "f41e1c3f"
Content-Type: text/css; charset=UTF-8
# RED also says this is a 404?
xxx@xxx:~$ curl -I -H 'If-None-Match: "f41e1c3f"' http://example.com/css/383010.css
HTTP/1.1 200 OK
Date: Wed, 09 Oct 2013 16:29:24 GMT
Server: Apache/2.2.22
Vary: Accept-Encoding
Expires: Thu, 09 Oct 2014 16:29:24 GMT
Etag: "f41e1c3f"
Content-Type: text/css; charset=UTF-8
有人知道如何复制RED看到的错误吗?