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).
I’ve tried:
ensuring the dns mydomain.com has “Proxy Status=Proxied”.
creating page rules for https://mydomain.com/api/myassets/list/all with “Cache Level=Standard” and “Origin Cache Control=ON”
I think I understand - because my url doesn’t have a cached asset type (e.g. .js extension), Cloudflare doesn’t apply the standard (default) cache level.
Any idea what sort of config I’d need to add to enable the “30 seconds” cache I’ve specified in my response headers?
e.g. I’ve created a page rule to explicitly enable “Cache Level=Standard” and “Origin Cache Control=ON” for the exact url.