Re: [us...@httpd] Adding headers based on Content-Type

2009-03-04 Thread anson ho
I've faced a similar problem before. The answer is that there is no easy solution with existing apache module. I need to write an apache module myself to solve the problem. My idea is come from mod_trace_output which can capture output (both headers & content) from another handler. But it doesn't w

Re: [us...@httpd] Adding headers based on Content-Type

2009-03-03 Thread André Warnier
Foster, Stephen (ASPIRE) wrote: But the content type will be sent back by dynamic content so that code chunk will not be valid. If so, then why can whatever the "dynamic" portion, which generates the response, not also add the response header you want ? That would be the most logical and effi

[us...@httpd] Adding headers based on Content-Type

2009-03-03 Thread Foster, Stephen (ASPIRE)
Hi there, I have as situation where I need to add custom headers when the response is of a certain type, for example: If the response type is "text/html" I want to add a header of "Content-Style-Type "text/css"" If the response type is anything other that "text/html" then don't add anythin