eward
1
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
eward
2
*subdomain.domain.io/destination/*
is the page rule
Cookies maybe?, hard to say without header example
intr0
5
Turn on Edge Cache TTL as well.
eward
6
Edge Cache TTL: 7 days is my current setting already 
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 Like
eward
8
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
eward
10
I just rewrote my function to use GET and it still shows the cf-cache-status as dynamic 
The header still says chunked? If so it’s probably not possible to cache
eward
12
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
system
Closed
13
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.