cloudflare / Cloudflare-WordPress

A Cloudflare plugin for WordPress
https://www.cloudflare.com/wordpress/
BSD 3-Clause "New" or "Revised" License
216 stars 83 forks source link

don't purge feed URLs if cache everything not enabled #482

Closed jacobbednarz closed 2 years ago

jacobbednarz commented 2 years ago

In the scenarios where we don't have a cache everything page rule, the feeds URLs don't need to be purged as they won't be in the edge cache (since it isn't HTML).

~$ curl -svo /dev/null https://www.[redacted].com/feed/ 2>&1 | grep -i "content-type:"
< content-type: application/rss+xml; charset=UTF-8