APO and the Caching Everything page rule on the WordPress Rest API URL. Purging problem

Background
I am using APO on my website, but it does not cache the Rest API of WordPress. I have one endpoint there that is frequently used by my WordPress plugin, so I added a “Cache everything” rule for that path.

Issue
And here a strange thing happens when I try to purge the cache of that path. When directly accessing the link or querying endpoint with Postman, you can see the changes. But, when fetch() in the JavaScript code fetches this path, it gets the old data. Only when I use the “Purge Everything” option on Cloudflare, the changes are visible, so it’s definitely not a browser cache problem (I’ve also checked on Incognito and other browsers).

What could be the cause?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.