Need help with caching setup

I am an enterprise customer who made a ticket 2 weeks ago with no response so I am asking here.

my platform uses content-type headers in our api responses to tell customers applications interacting with our platform how to interpret the file. so some may say application/json or image/png depending on what the customer is embedding, however they have no file extensions so cloudflare considers them dynamic.

is there a blanket way to say that for domain.com/api/** (where there could be literally any amount of subdirectories) to use the content-type header to determine whether to cache instead of being dependent on the file extension? for clarity google cloud cdn handles this without issue.
Was this page helpful?