[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Apache Client Filehandle
From:       Geoffrey Young <geoff () modperlcookbook ! org>
Date:       2005-01-27 17:00:13
Message-ID: 41F91E1D.6090709 () modperlcookbook ! org
[Download RAW message or body]

please keep posts on-list so everyone can benefit :)

> Thanks for the sugestion; my handler has a flag that is set in an
> application specific config file (not the apache.conf or any included
> files therein) that should be able to turn off compression.

what you could do in that case is just disable mod_deflate:

  $r->subprocess_env('no-gzip' => 1) if $some_custom_condition;

the trick is, you need to do it before the PerlResponseHandler phase, such
as from a PerlFixupHandler.

> 
> My module may even cache it's contents...
> 
> Seems that to use mod_deflate with my application specific flag, I'll
> have to reconfigure the server config of mod_deflate at runtime whenever
> the flag is overriding the default right?

no, not the server config.  see above :)

HTH

--Geoff
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic