Asserting like this: `expect(res2.
Asserting like this:
expect(res2.headers.get('CF-Cache-Status')).toBe('HIT')
I am using waitUntil for the cache put, but awaiting it doesn't seem to work either7 Replies
Hmmm ok, are you consuming all your response bodies from
SELF.fetch()
requests?Yes
Ok, if you could put together a minimal reproduction that would be super helpful ๐
ok will make one in a bit ๐
Thanks! ๐งก
omg sorry this was a bug in my code... it turns out my code was incorrectly relying on the
Cache-Control
header from an upstream fetch()
, which I didn't add to my mocked fetch call :NPCMechanicFacepalm:Whoops! No worries ๐