ファイル ("/foo/bar") をダウンロードするように window.location を設定しています。これで、ダウンロードは google chrome で機能しますが、次の警告が表示されます。
Resource interpreted as Document but transferred with MIME type application/csv:
これらは、Google Chrome に従って設定される応答ヘッダーです。
Content-Description:File Transfer
Content-Disposition:attachment; filename="foo.csv"
Content-Length:29
Content-Type:application/csv
Date:Sun, 14 Dec 2014 20:53:33 GMT
Server:http-kit
とにかくjs側でacceptヘッダーを設定してこの警告を省略することができるかどうかのアイデアはありますか?