Quoting EBRARD Loic <[EMAIL PROTECTED]>:

> Hi every,
> is anabody found a solution for probem of opening a pdf send from
> apache-tomcat in mod_deflate ?
> the disease appear like this : ie receive a pdf file that would be open in
> adobe... however there is the window : "save file to ..." opening instead.
> if i disable mod_deflate... all works fine...
> 
> i'm actually in       - apache 2.0.48
>               - tomcat 4
>               - jk2
>               - mod_deflate
> 
> I tried to disable deflate on pdf with those sentences :
> SetEnvIfNoCase Request_URI application/postscript application/pdf* no-gzip
> dont-vary
> SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
> but the apache serveur seem to send a servlet that is not reconize as
> containing a pdf file..

Hello,

I just met the problem today, on a similar configuration, and for me, the fix
that you applied worked.

I actually just modified a bit the sample configuration for mod_deflate:

  # Don't compress images
  SetEnvIfNoCase Request_URI \
  \.(?:gif|jpe?g|png|pdf)$ no-gzip dont-vary

restarted Apache, and that was it.

In my case, the PDF file was a real, static one, not generated by a servlet.

Maybe you can have a look at the actual packets exchanged to see what is the
difference in header with and without mod_deflate?

Laurent


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

Reply via email to