OT: How to force pdf display, not download?

Etusivu
Liitteet:
Viesti alkuperäisessä muodossaan
+ (text/plain)
Poista viesti
Vastaa
Lähettäjä: PLUG-discuss
Päiväys:  
Vastaanottaja: plug-discuss
Aihe: OT: How to force pdf display, not download?
How to force pdf display, not download?

I found this answer online, and added the code shown below.
It works with firefox, but not with chrome.

www.devside.net/wamp-server/forcing-a-pdf-or-doc-to-open-in-browser-rather-than-downloading

To force inline viewing of PDF files, edit the website’s HTTP
and HTTPS VirtualHost files, and inside the VirtualHost block
add in configuration:

<LocationMatch "\.(?i:pdf)$">
    ForceType application/pdf
    Header set Content-Disposition inline
</LocationMatch>




---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss