Disable Cloudflare from caching JSON

Hello guys,

How do I make Cloudflare to bypass the following JSON resource.

Without Cloudflare connected, it loads in under 50ms< but with CF activated it takes 2~3 seconds

Just add a PageRule which looks like this:

https://kicheny.com/wp-json/wordpress-popular-posts/v1/popular-posts
Cache Level: Bypass

But just so you know, for me (from Germany) it loads fast like this:

1 Like

My server is in Germany :stuck_out_tongue_winking_eye:

Well, I found out that it’s one of the plugins that came with the theme. I don’t even use it’s features.

I tried to bypass cache but still Cloudflare caches it.

I have since disabled the plugin.

For me it shows:
cf-cache-status: BYPASS

But also the content of the URL changed. Anonym users can no longer call this API endpoint.

I have since disabled JSON for non-logged in users. Let me delete that page rule for now.

Since the JSON is disabled for non-logged in users the TTFB is at about 1.5s.
But before it was at 70ms.

I have removed the resource. It must be a cache issue on your side.

Yeah I know. It triggers a 404, but to trigger the 404 it takes about 1.3s. Thats what I wanted to say

I can’t see it from my side. Like I have done reloaded posts from different browsers.

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