Chrome 中忽略 Content-Disposition 中的文件名

use*_*635 5 pdf coldfusion google-chrome http-headers web

我使用的是最新版本的 Chrome,当我在浏览器中查看 pdf 时,我想下载该文件。当我尝试下载它时,它的名称应该是“index.pdf”。但是,当尝试下载该文件时,我收到“网络错误”,并且文件名是“download”而不是“index.pdf”

这些是我的 chrome pdf 插件的当前标题:

Cache-Control: no-cache, no-store, must-revalidate, max-age=0
Connection: keep-alive
Content-Disposition: inline; filename=index.pdf
Content-Type: application/pdf;charset=iso-8859-1
Date: Fri, 07 Dec 2018 16:42:16 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubdomains;
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Run Code Online (Sandbox Code Playgroud)