Chrome 抱怨 MIME 类型错误

Chrome complains of MIME type wrong

我创建了一个简单的 PHP 脚本来下载文件(将它们发送到浏览器)。脚本向浏览器发送文档类型,例如 MIME 类型 "application/gz" 例如文档 test.tar.gz

然而,在收到文件时 Chrome 抱怨:

Resource interpreted as Document but transferred with MIME type application/gz

我是否设置了错误的 MIME 类型? (请不要关注我为什么要创建自己的下载脚本...只是 MIME 问题)

VCSjones 是正确的 - 我需要将 MIME 类型更改为 application/gzip 然后 Chrome 不再抱怨。