Title: RE: pdf automatic opening problem

thanks for this idea...

the fact is that i have to disable mod_deflate
not by : SetEnvIfNoCase REQUEST_URI ....
but by : Content-Type: application/pdf

i'm actually trying : AddAltByType "pdf" application/pdf
other idea welcome

-----Message d'origine-----
De : Laurent Blume [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 17 février 2004 15:53
À : Tomcat Developers List
Objet : Re: pdf automatic opening problem


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]


This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.

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

Reply via email to