> Torsten Curdt wrote:
> 
> > > > And a second: I downloaded your example from ulim/iebug and
> > experimented
> > > > a bit with it. If i save the generatet pdf in a file and put it in
> > the
> > > > same directory and call it, it works in all browsers, including IE
> > 5.5.
> > > > How do you explan this? There should be no difference between the
> > > > streams?
> > > 
> > > As I said, IE does some checks on the stream, if it arrives via HTTP,
> > > which it doesn't do, when opening a file from the filesystem. 
> > 
> > No, you misunderstood me. I saved the PDF stream in a file, put it in
> > the webapps/<Context>-directory and served it using tomcat via HTTP,
> > same context and server as the cocoon output.
> > Ever tried this? Try it with your bug sample, it takes just some
> > seconds. How do you explain this difference?
> 
> AFAI remember the thing that really solved the IE-PDF problems in C1
> was setting the Content-Length header. This would fit in the
> picture you described...
> But this needs to be double-checked...
> 
> But AFAI understood setting a Content-Length header in C2 could be a
> problem because we have streams - no documents.
> 
> So what about creating the cache object first and then serving the
> request from cache - so we know about the size of the object.
> 
> Maybe Carsten can tell if this possible at all?
>
As far as I remember there were some strange problems with pdf and
content length. I am not quite sure anymore, perhaps the mail archives
contain some old mails about this topic.

I use the IE 5.5 and have no problems with PDF (Acrobat Reader 5).

The content length is set when the response is served from the cache
or when it is put into the cache.
(As the acrobat reader plugin for the ie requests the pdf document
twice the second request is served from the cache and has the 
content length set anyway).
So if your response is cacheable, the content length is set. If your
response is not cacheable there is currently no way to detect the
length of the response, so the content length is not set.

I know this doesn't help at all for this problem but perhaps
there is something in the mail archive (which is currently down...)

Carsten

> --
> Torsten
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to