Remix serverless adapters not applying expected Cache‑Control headers on GET loader responses
20.2K reputation · 20 Feb 2025, 19:04 UTC
Determine whether Remix automatically adds a Cache‑Control header to GET loader responses when deployed via a serverless adapter, or whether developers must explicitly return the header from the loader.
The Vercel and Netlify adapters honor the headers function returned from loaders, but the Cloudflare Workers adapter strips unknown headers unless they are listed in the wrangler.toml compatibility flags, leaving it unclear if Remix supplies any default headers for low‑traffic workloads.
Does Remix inject a default Cache‑Control header for GET loader responses with the Vercel adapter? Is manual header setting required for the Cloudflare Workers adapter to preserve Cache‑Control? Are there adapter‑specific configuration flags that enable automatic header injection?