TanStackT
TanStack4w ago
3 replies
moderate-tomato

Caching if deployed to Cloudflare Workers

I have deployed a basic TS Start app to Cloudflare workers using the Cloudflare guide (https://developers.cloudflare.com/workers/framework-guides/web-apps/tanstack-start/).

I am struggling to get caching to work. It seams like Cache-Control headers don't work in that setup(?) How would I achieve something like ISR (as described in https://tanstack.com/start/latest/docs/framework/react/guide/isr )? Are there any working guides/examples out there?
Incremental Static Regeneration (ISR) allows you to serve statically generated content from a CDN while periodically regenerating it in the background. This gives you the performance benefits of stati...
Incremental Static Regeneration (ISR) | TanStack Start React Docs
Was this page helpful?