I’m trying to set cacheTTL via cf property, while the docs seem to suggest that I have the cf property at the end fetch(URL, request, { cf: { cacheTTL: 10 } }) it seems that it doesn’t work and the age I’m getting is above 16?
The underlying issue here is fetch does not take three arguments, but only two. The cf field is always part of the request object, which is either the first argument or the second.
you’re right, there is no 3rd argument, those dangling brackets } get the best of me, from hindsight it looks like an additional argument as opposed to being just another part of the object. I’ve updated the answer. Using the spread operator to make a new object is the correct solution.