How to cache workers with static assets (beta)?

I used to have my app deployed with pages I moved to the worker + assets beta so I can have access to logs.
Unfortunately now my cache hit rate is zero.

In my backend I do:

setResponseHeader(event, "Cache-Control", "max-age=60, stale-while-revalidate=60")

return response


This used to work perfectly with pages, but is not working anymore with workers+static assets
2024-12-07_14.png
Was this page helpful?