We have recently started using Cloudflare. We have a HTTP/JSON API on which we use Cloudflare as a Proxy, i.e. traffic is routed through CF.
We have setup page rules to certain API endpoints to be able to cache them. The rules we are using are:
Cache Level -> Everything
Edge Cache TTL -> 4 Hours
An example of the matching pattern we are using is: https://api.example.com/v2/entities/*
But we are unable to verify if caching is working. We are seeing some URL hits on our servers for these URLs. Also when we test these URLs, we are not getting the CF-Cache-Status response header.
I am not sure if we have set it up correctly or we just have to wait for some more time. It’s been over 30mins now.
Please let me know if I missed something in setting up the page rules.
Thanks and Regards