Currently, headers are being sent on template_redirect. This is a great place to send headers; however, it only works when templates are actually loaded. As an example of where this fails, WP SEO does not load the templates when generating a sitemap. Thus, the sitemaps do not get the headers properly set.
I'm not sure what would be the best place to send these headers, but it needs to change before this causes issues with special use cases.
Currently, headers are being sent on
template_redirect
. This is a great place to send headers; however, it only works when templates are actually loaded. As an example of where this fails, WP SEO does not load the templates when generating a sitemap. Thus, the sitemaps do not get the headers properly set.I'm not sure what would be the best place to send these headers, but it needs to change before this causes issues with special use cases.