On Fri, Oct 19, 2012 at 4:44 PM, Bhattacharya, Sudip <sudip.bhattacha...@genpact.com> wrote: > Hi All, > > > > I have a problem for which I am not able to find a solution. > > > > I need to conditionally enable mod_deflate for clients who send a particular > custom HTTP Request Header. > > Let’s say this HTTP Request Header is like this: > > IWANTGZIPDATA=true > > > > Now my condition should be like this: > > > > If IWANTGZIPDATA=true then > > Enable gzip > > Else if IWANTGZIPDATA=false OR IWANTGZIPDATA is not present in request Then > > Disable gzip > > End if. > > >
Enable mod_deflate, and use mod_setenvif, mod_headers or mod_rewrite to set either the environment variable "force-gzip" or "no-gzip", as documented on the mod_deflate manual page. http://httpd.apache.org/docs/2.2/mod/mod_deflate.html Cheers Tom --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org