Problem/Motivation

We have a domain that's behind CloudFlare proxy for WAF, but we're using Platform CDN. The acquia_purge module makes a HTTP `PURGE` request when invalidating single URLs. CloudFlare blocks this and it never makes it to the fastly server.

Steps to reproduce

Set up a domain as described above and see that CloudFlare returns an invalid request.

Proposed resolution

Use the fastly POST API to purge the urls.

Remaining tasks

What do you think? Is there a better way to handle this?

Comments

andyg5000 created an issue. See original summary.

andyg5000’s picture

Title: PPlatform CDN and CloudFlare PURGE blocked » Platform CDN and CloudFlare PURGE blocked
StatusFileSize
new963 bytes

Here's a patch we're using that solves the problem.

andyg5000’s picture

StatusFileSize
new935 bytes