Cache responses from the origin server proxied through Cloudflare - gRPC connection?

Hi guys, my requests are proxied through Cloudflare using a gRPC connection to my origin server. How can I cache the response from the origin server? It seems like it's not caching by default.
4 Replies
RyanKnack
RyanKnack9mo ago
What is the content that it is returning
David Ken
David KenOP9mo ago
They are objects, in typescript.
RyanKnack
RyanKnack9mo ago
Is it like an API? Like the file isn't ending in .json or smth? If so you'll need to add a page rule to cache everything https://dash.cloudflare.com?to=/:account/:zone/rules/form
David Ken
David KenOP9mo ago
Thanks. But how about streaming data with gRPC? I'm going to try with "interact cache with worker" It worked as expected, thanks!
Want results from more Discord servers?
Add your server