-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anurag,

On 3/15/2010 12:17 PM, Anurag Kapur wrote:
> Thanks for your reply. I am actually trying to use a combination
> of mod_setenvif and mod_headers. mod_headers can do the job as long as an
> appropriate environment variable is set. I am trying to achieve the desired
> outcome using something like the following:
> 
>   SetEnvIf Cache-Control .+ cc_set=123

This will check for a request header called "Cache-Control".
Cache-Control is likely to be in the /response/ header, so SetEnvIf
can't check for it.

>   Header set Cache-Control "max-age=1000" env=!cc_set
> 
> However, since SetEnvIf directive operates on request (not response)
> headers, I am unable to set the right environment variable to be used by the
> Header directive (a part of mod_headers).

Correct.

> In summary, to be able to use mod_headers to solve this problem, I need an
> environment variable set conditionally based on the "response" header.
> However, I have not been able to achieve this using SetEnvIf, as it operated
> on request headers and not response headers.
> 
> Would be great if someone who knows of an alternate can his/her inputs.

I'm not sure if there's a way to do this with existing httpd components:
you may have to build your own.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkueYTIACgkQ9CaO5/Lv0PBe3wCSAw1U7FlnYy7sK0N56Ugp1FQs
4QCgv7VZBQMy6FpYlpy3BMSNo3Hwe/M=
=T57K
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to