Forum Moderators: phranque
I think the problem is that there is no extension ".pdf" in the URI. Is it possible to test the content-type of the header in a "SetEnvIfNoCase" command? another idea?
Thanks,
Annie
No, your problem is fairly well-described, but the subject area is one where few webmasters have ventured -- Few are using compression, although the number is bound to grow over time.
I have no idea how the server, browser, and Adobe Reader will interact with compressed content, so all I can do is to say Welcome to WebmasterWorld [webmasterworld.com]! and hope that this post will bump your thread up on the active list so it gets a few eyeballs.
Jim
First thanks for your answers.
The pdf comes from a servlet. the url looks like this :
[portaltest.example.com...]
(this link don't work, it is factice)
The file is compressed by the apache server, with mozilla
a message says that the file is corrupted, with ie 5.5 it do not open. I read on the net that pdf must not be compressed ( for example : [evolt.org...]
When i download a pdf file directly (http://portaltest.example.com/file.pdf) there is no problem, the file is not compressed.
So my problem is to avoid the compression of pdf.
Annie
[edited by: jdMorgan at 3:24 pm (utc) on June 7, 2004]
[edit reason] Obscured domain name [/edit]
Is it possible to make a list from one of the passed parameters which are referring to a pdf file? (With mod_rewrite you can access this list and rewrite the url someway, which later can be recognised by SetEnvIf. Or if the SetEnvIf comes later into the processing than mod_rewrite then you can try to set the enviromental variable with mod_rewrite so the mod_deflate will ignore the compression)
The passed values does not contain the pdf extension, there is only the key of the file in the database. The file can be a pdf or a doc.
For the moment i use "SetEnvIfNoCase" to avoid the compression of all the files delivered by this servlet :
"SetEnvIfNoCase Request_URI FileServer no-gzip dont-vary".
Does someone know if mod_gzip works in the same manner?
Annie