Workers fetch cache not working?

I'm using an external api, which is rate limited. But I need more requests than that the limit allows, therefore I want to use cloudflare workers to cache the request and work as a middle man. I'm using the hono framework to handle my requests (but I don't think that should affect this issue). I'm using this function to cache my requests.
export const cachedFetch = async (url: string, time = 60 * 60) =>
  await fetch(url, {
    cf: {
      cacheTtl: time,
      cacheEverything: true,
      cacheKey: url,
    },
  });

But when runnin this, I'm still getting rate-limited by the external api? Even tough 1 hour is plenty below the rate limit?
Was this page helpful?