> Thanks, I tried it. Currently filter function looks like this: > > > > static apr_status_t procinfo_filter(ap_filter_t *f, > > apr_bucket_brigade *b) > > Why are you doing this in a filter? You should be manipulating > the response *body* in a filter, but the *headers* in a processing hook. >
I did not know about that. As I said, I've taken code from mod_expires, and it modifies headers via filter. What hook should I use to manipulate headers *AFTER* content generation was finished? > With no luck for 3xx responses. It works even for 404 Not Found, but not > for 3xx. > Where does the 3xx come from? Is it a script, or something using the > same (util_script) processing path like mod_asis? Or a hooked function? > I tested 304 response for usual static file, and 304 response generated by php script. Headers were not set in both cases. BTW, this should be on the modules-dev list. > > Thanks and sorry, I subscribed it and will go there with further questions. -- // cronfy
