I have problem in using the "content-disposition: attachement" and "content-disposition: inline" header.
The problem is after clicking the open button in the dialogue box, the IE reports the attached error.
I have noticed the behaviour that the pdf file is stored inside the Temporary Internet Files and it is getting deleted immediately after clicking on the open button.
I checked in many forums and the advice is to use "Cache-control: public","Cache-control: max-age=60".
But still it is not working for me.
And I hv tried with many other combinations
like "Cache-control: private" and "Pragma: cache"
"Content-Type: application/pdf", "'Content-Length: file->size"
"Content-disposition: attachment; filename="'. file->filename"
"Expires: 0', 'Pragma: cache', 'Cache-Control: private"
This problem occurs only when we try to open the URL directly in the address bar and the same works fine with <a href='openPdf'>.
The application is running in Wesphere6.1
Please suggest some solution