Yes, it would be, but it shouldn’t even require a Page Rule in the first place. If a server returns the header
Access-Control-Allow-Origin: * or intentionally omits the header
Vary: Origin that should already be enough information for Cloudflare to understand that the resource is identical regardless of which Origin is requesting the resource.
If someone from the Cloudflare Dev or Project Management teams stumbles across this comment please fix the bug of your CDN servers ignoring
Vary headers in their caching decisions. I was very surprised to read from this support page that:
Cloudflare doesn’t consider vary values when making caching decisions.
That’s not a feature that is a bug, and it makes use-cases like mine, which are not at all uncommon, very frustrating.
If a server omits
Vary: Origin or includes
Access-Control-Allow-Origin: * do not use the
Origin header as part of the default cache key, or otherwise add an option to the Purge File by URL API where I can specify the file should be purged for all origins.