Hello,
I would like to setup custom HTTP cache-control headers depending on the type of pages. I thought that I could use the "send_headers" action hook to do that, but unfortunately, it seems that when this hook is called, Wordpress does not yet know what type of page it is dealing with, and therefore is_attachment(), is_author(), is_single(), is_category(), is_tag(), is_feed() and is_home() all return "false".
Did I miss something? This would be very handy since not all types should be cached for the same length of time. In theory, once "send_headers" has been called, it's not possible to send additional header information.
Thank you!