Caching remains as 'dynamic' no matter how I setup the page rules

So I noticed of the 330k requests per day… only 2k are actually cached.

My api’s are on subdomains, example of one of my busier ones:

https://subdomain.domain.io/destination/getById

To make sure these are cached, I setup the following page rule:

subdomain.domain.io/destination/

Cache Level: Cache Everything, Edge Cache TTL: 7 days

However when I check the headers, the ‘CF-Cache-Status’ is always ‘DYNAMIC’

What am I missing here?

1 Like

*subdomain.domain.io/destination/* is the page rule

Cookies maybe?, hard to say without header example

Turn on Edge Cache TTL as well.

Edge Cache TTL: 7 days is my current setting already :confused:

Sorry I’m just on my phone but I guess it’s the encoding chunked that is your problem, maybe we need an Cloudflare expert here, good luck :+1:

1 Like

So… I forgot to mention these are posts requests. I understand cloudflare doesn’t cache these by default… but I really need it to

1 Like

I had the same problem once, it was easier to rewrite the application to “get”, don’t know if it’s possible but give it a tough

1 Like

I just rewrote my function to use GET and it still shows the cf-cache-status as dynamic :confused:

The header still says chunked? If so it’s probably not possible to cache

Chunked had nothing to do with it really. It was the post causing the issues. It took a bit but now it seems that it’s caching correctly

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