You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nikolaus Schmitt <n....@scaet.de> on 2003/08/29 22:03:08 UTC

[users@httpd] Streamed PDF: mod_deflate: >Remove
Hi,

compressing output from mod_jk / mod_jk2 using apache/2 and mod_dfelate
works fine.

I'm in the need to avoid compression of dynamic backend output for specific
content types.
At least, the content type "application/x-pdf" must not be compressed in our
environment.

I tested 2 configurations using apache-2.0.47:

A) SetOutputFilter DEFLATE
    Will compress all and everything.
    There seems to be no way to exclude compression of a specific content
type,
    e.g. "application/x-pdf".

B) AddOutputFilterByType DEFLATE ....
    Will compress whatever types i added.
    That's ugly!
    To exclude a small number of content types from deflation,
    any other possibly expected content type needs to get included
expressively.

Did i miss some information in the discussion groups or the manual?
Any suggestions?
Thanks
Niko


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Streamed PDF: mod_deflate: >Remove Posted by Nikolaus Schmitt <n....@scaet.de>.
Thanks Joshua,

a feature "RemoveOutputFilterByType" would be rather cool,
but Your hint helped me out. I didn't rember the SetEnv feature.
Niko
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Saturday, August 30, 2003 7:42 PM
Subject: Re: [users@httpd] Streamed PDF: mod_deflate:
>Remove<OutputFilterByType


>
> On Fri, 29 Aug 2003, Nikolaus Schmitt wrote:
> > I'm in the need to avoid compression of dynamic backend output for
specific
> > content types.
> > At least, the content type "application/x-pdf" must not be compressed in
our
> > environment.
>
> You can set an environment variable "nogzip" to prevent compression.
> I don't know of an easy way to set environment variables by content-type,
> but you can certainly set them for specific URLs using mod_setenvif.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Streamed PDF: mod_deflate: >Remove Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 29 Aug 2003, Nikolaus Schmitt wrote:
> I'm in the need to avoid compression of dynamic backend output for specific
> content types.
> At least, the content type "application/x-pdf" must not be compressed in our
> environment.

You can set an environment variable "nogzip" to prevent compression.
I don't know of an easy way to set environment variables by content-type,
but you can certainly set them for specific URLs using mod_setenvif.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org