I want to force a PDF to download, rather than load in-browser.
I’m using the following code in my .htaccess:
<FilesMatch "\.(?i:pdf)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
It works great, except in Safari.
Any ideas?
Try this in your .htaccess file
It appears to work fine even with safari on my tests here