CondeNast / purgely

A WordPress plugin to manage Fastly caching behavior and purging.
24 stars 9 forks source link

Use different action for sending headers #18

Closed tollmanz closed 8 years ago

tollmanz commented 8 years ago

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.

tollmanz commented 8 years ago

Closed with f8c03aa.