Re: PDF problem on IE from JSP

2008-01-17 Thread MrKimi
In my case every doc has a different name so the 'same document' issue doesn't apply. I can't tell you if that would be a problem or lot. Jonadan wrote: > > Thanks! > After changing "no-cache" to "cache", it worked! But I am not sure whether > this may deliver the same documents when diiferent

Re: PDF problem on IE from JSP

2008-01-17 Thread MrKimi
The critical part of my solution (which I got from someone else's post) is the setting of the cache stuff. Setting the mime type is something you have to do and my particular case depends on the filename type, but as long as it gets set you also need to set the cache right as well. Jonadan wrote

Re: PDF problem on IE from JSP

2008-01-16 Thread MrKimi
This solved a similar problem for me String mimeType = sc.getMimeType(filename); FileHelper helper = new FileHelper(); InputStream in = helper.fetch(filename, m_dir); response.setContentType(mimeType!=null?mimeType:"text/html"); response.setHeader("Pragma", "cache");