getting 1042 error from calling a "fetch" call within my React Router application

I'm deploying my React Router (version 7 latest) application as a Worker and it doesn't allow me to fetch an endpoint which is exactly what I need because I'm adding Cache-Control headers to make it incredibly fast

    headers: {
      "Cache-Control": `s-maxage=${31536000}`,
    },


I need this to be this way because there are many JOINs involved when calling this endpoint, I want to cache and revalidate, not compute every time.

what's the recommendation here? understood that it's about security, but then what? I need my native WebAPIs and techniques to work, right?
Was this page helpful?