Caching all requests (including query params) on specific routes

I would like to cache every request made to /api on my site, even if that includes query parameters. Is this possible with Cloudflare?

Your best bet is to make a Page rule with cache everything
https://support.cloudflare.com/hc/en-us/articles/218411427-Understanding-and-Configuring-Cloudflare-Page-Rules-Page-Rules-Tutorial-

Hmm. I realize that I also need to serve different versions based on Authorization headers.

You need to be careful with caching authed content as if you cache too aggressively, it is likely that the wrong content will be sent to a user.

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