Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to access response object data in Apache

  • SetEnvIf
  • RewriteCond

... so that one could manipulate headers based on content type and caching output?

From the documentation it seems that this is not possible. Is there any other module which could allow this kind of manipulation (setting environment variables based on response headers)?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

mod_rewrite doesn't operate on headers, but you CAN do this with mod_headers, which has an example for this exact situation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.