user679526
user679526

Reputation: 845

PDF content displays in Firefox but not in IE

The requirement is the pdf file should be opened when the pdf link is selected on the xhtml page. The pdf opens properly for chrome and firefox but displays empty content for Internet explorer.

response.setContentType("application/pdf");
response.setHeader("Content-Disposition","attachment; filename=sample.pdf");

Upvotes: 1

Views: 892

Answers (1)

BalusC
BalusC

Reputation: 1108802

Yes, it is been downloaded over HTTPS.

This is a MSIE specific quirk. You need to add the following headers to the response.

response.setHeader("Cache-Control", "public");
response.setHeader("Pragma", "public");

See also Microsoft Knowledge Base Q316431.

Upvotes: 1

Related Questions