【发布时间】:2011-08-29 11:17:12
【问题描述】:
当用户访问我们网站的下载页面时,它会自动开始下载。该页面有一个display:hidden iframe 和src 指向安装程序文件
<iframe src="/path/to/installer.dmg"></iframe>
到目前为止,这工作正常。但是我的 Chrome 扩展程序:“Web 开发人员”会记录此警告消息
Resource interpreted as Document but transferred with MIME type application/octet-stream
那么,有没有办法将installer.dmg的content-type显式声明为octet-stream,这样浏览器就不会混淆了?
【问题讨论】:
标签: html iframe mime-types