Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

add CustomHeaders only for certain file types?

$
0
0
I want certain file types (PDF) to always suggest to the browser that they be downloaded rather than opened in the browser. The header for this is of course Content-Disposition. I can add this header to an entire site, or a subfolder, using a CustomHeaders entry in web.config; is it possible to limit it to the PDF mime type? Or to URLs ending in PDF?

Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>