Chuck, Thanks for reply. Yes, it does work with Firefox. Using an http viewer, I repeated my test with IE where the pdf displayed the first time but not the second time. That is, I 1) entered url xxx/xxx/testfile1.pdf 2) got the login form, logged in, and then the pdf displayed ok. 3) but then entered xxx/xxx/testfile2.pdf and got the pop-up message.
Both times (when the pdf displays and when it doesn't), the Cache-Control was no-cache as you suggested. However, the pdf always displays when the j_security_check Posts the request after the initial login. But when I'm already logged in, IE will never display the pdf. So it seems that Tomcat is behaving differently in each case. Just can't see what it is. WHAT STANDS OUT: The Request Header "Accept" field includes many entries (eg application/vnd.ms-excel, etc) and the */* when it works. However Accept only includes */* when it fails. I thought */* means Accept everything. Anyway, I'll browse the archives as you suggested to see what I can find. Thanks very much, Ed -----Original Message----- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:56 PM To: Tomcat Users List Subject: RE: User Authentication - IE doesn't recognize mime type (pdf, xls)of files in protected directory > From: Ed Marshall [mailto:[EMAIL PROTECTED] > Subject: User Authentication - IE doesn't recognize mime type > (pdf, xls)of files in protected directory > > Problem: When accessing files other than a .jsp (pdf, > xls, etc.) within the protected directory, the browser > does not recognize the mime type and does not allow me > to open the file. Does it work with Firefox? Look at the HTTP headers being returned with the file; if they contain a Cache-Control setting of no-cache, IE will not hang onto the file long enough to let an application open it. It's also possible that an incorrect mime type is being returned with the file. You can browse the archives for "pdf" and "cache" and see lots of traffic about this IE "feature". http://marc.info/?l=tomcat-user&w=2&r=1&s=pdf+cache&q=b - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this e-mail is confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, copy or use of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify us immediately at the e-mail address above and delete the original message. Thank you. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]