3xx is considered an "error" as far as headers are concerned, so use the
err_headers

  Issac


On 26/12/2010 10:58, cronfy wrote:
> Hello.
>
> I am trying to create a module that would send some response headers
> related to request. I've taken mod_expires code and adapted it for my
> needs. Everything works fine for 200 responses, but when response is
> "304 Not Modified", my headers do not appear there.
>
> I tried to set r->headers_out and r->err_headers_out, but it does not
> work. The filter function runs on every request indeed, I checked it
> with debug right near 
>
>     t = r->headers_out;
>     apr_table_set(t, "X-Process-Info", msg);
>
> But X-Process-Info: is not in the output still. What am I missing? 
>
> Thanks in advance!
>
> -- 
> // cronfy

Reply via email to