You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by EBRARD Loic <lo...@airbus.com> on 2004/02/17 15:17:08 UTC
pdf automatic opening problem
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..
please help
regards
Re: pdf automatic opening problem
Posted by Laurent Blume <la...@elanor.org>.
Quoting EBRARD Loic <lo...@airbus.com>:
> 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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org