I’m am trying to get Cloudflare to cache the content for my REST API endpoint - https://mydomain.com/api/myassets/list/all
When I try the command
curl -I -X GET "https://mydomain.com/api/myassets/list/all", I get the response header
CF-Cache-Status: DYNAMIC (not cached). I’m expecting
CF-Cache-Status: HIT (cached).
- ensuring the dns
mydomain.comhas “Proxy Status=Proxied”.
- creating page rules for
https://mydomain.com/api/myassets/list/allwith “Cache Level=Standard” and “Origin Cache Control=ON”
- adding Cache-control response headers:
- upgrading my account to pro - to use the Caching Analytics. Unfortunately it doesn’t explain why my endpoint is still DYNAMIC.
- testing in Chrome browser, I’ve unchecked “Disable cache”
I have no idea why my cache instructions are being ignored. Please point me in the right direction.