I'm using a recent version of Chrome, and when I view a pdf in the browser I'd like to download the file. When I attempt to download it, it is supposed to have the name "index.pdf". However, when attempting to download the file I get a "Network Error" and the filename is "download" instead of "index.pdf"
These are the current headers I have for the chrome pdf plugin:
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
Aucun commentaire:
Enregistrer un commentaire