I was watching the Remix video on CDN Caching (https://youtu.be/bfLFHp7Sbkg) and find it super interesting, but since we host all our Remix apps on Cloudflare Pages, I believe this doesn't work for us? Since Pages run on Workers and Workers are executed in front of the cache, not behind it.
Are there any other ways of achieving this, except calling the Cloudflare Cache ourselves in the code? We wouldn't be able to make use of the stale-while-revalidate feature, but could still cache requests to external data sources.
An alternative would be to migrate the hosting to AWS Lambda and use Cloudflare as CDN, but I really love Cloudflare Pages.
Remix relies on CDNs and cache control headers to get the best web performance possible. Here we’ll compare various caching strategies, including Static Site Generation and Increment Static Regeneration, and compare the tradeoffs.