Force download PDF from a website using .htaccess

Sometimes you don’t want your pdf/image or whatever to be viewed on the browser, the code below forces all of the types to be downloaded

[code]


ForceType application/octet-stream
Header add Content-Disposition “attachment”

[/code]

Don’t forget to clear cache on the browser