资源被解释为文档,但通过mime类型application/octet-stream pdf传输 [英] resource interpreted as document but transferred with mime type application/octet-stream pdf

查看:1855
本文介绍了资源被解释为文档,但通过mime类型application/octet-stream pdf传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道为什么我遇到这个问题,无法在chrome浏览器中下载pdf文件,它在Nginx服务器中显示以下错误.

Don't know why I'm facing this issue not able to download pdf files in chrome browser, it is showing below error in Nginx server.

资源被解释为文档,但通过mime类型application/octet-stream pdf传输

resource interpreted as document but transferred with mime type application/octet-stream pdf

尽管我已将mime类型作为application/pdf

Though I have included mime type as application/pdf

推荐答案

如果只是警告,则只需忽略它!只是Chrome.

If it's just a warning then simply ignore it! It's just Chrome.

如果没有,请尝试将MIME类型包含为application/octet-stream.

If not, try to include MIME Type as application/octet-stream.

这篇关于资源被解释为文档,但通过mime类型application/octet-stream pdf传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆