setting `max-age` headers to served assets is not getting applied

I'm using React Router 7 and, in the past, I could control the TTL of any given asset with a _headers file located at the output location for my production files

_headers file
/favicon.ico
  Cache-Control: public, max-age=3600, s-maxage=3600
/assets/*
  Cache-Control: public, max-age=31536000, immutable


this is not possible anymore. How can i archive the same functionality whichout too much assle? the AI is telling me to write a whole other Worker just to handle assets, but I don't want to deviate too much on how React Router recommends things to do

please help, it shouldn't be this hard to control this. Basically manipulating the CDN aspect of Cloudflare has become increasingly harder
Was this page helpful?