Chrome 12.0.742.112에서 다음 헤더로 리디렉션하면
HTTP/1.1 302 Found
Location: http://0.0.0.0:3000/files/download.zip
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
X-Ua-Compatible: IE=Edge
X-Runtime: 0.157964
Content-Length: 0
Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
Date: Tue, 05 Jul 2011 18:42:25 GMT
Connection: Keep-Alive
다음과 같은 경우 다음 헤더를 반환합니다.
HTTP/1.1 200 OK
Last-Modified: Tue, 05 Jul 2011 18:18:30 GMT
Content-Type: application/zip
Content-Length: 150014
Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
Date: Tue, 05 Jul 2011 18:44:47 GMT
Connection: Keep-Alive
Chrome은 이전 페이지를 리디렉션하거나 변경하지 않으며 콘솔에 다음 경고 만보고합니다.
자원은 문서로 해석되지만 MIME 유형 application / zip으로 전송됩니다.
프로세스는 Firefox에서 올바르게 작동하며 새 탭을 열고로 이동하면 Chrome에서도 정상적으로 작동합니다 http://0.0.0.0:3000/files/download.zip. 내가 잘못하고 있습니까, 아니면 Chrome의 버그 / 이상한가요?