@Walshy | Deploying What would be best approach to cache a access token received after a **POST requ

@Walshy | Deploying What would be best approach to cache a access token received after a POST request (made within the worker) to an API endpoint? We are hoping to re-use this token for any subsequent requests (until the token validity, 1 week) to additional API endpoints within the same worker function? Is it possible to use cache API for it? Or do we need to use KV store instead?

I tried setting
cacheTtl
in
cf
object in the fetch request, but it doesn't seem to do anything, which I assume is due to it being a
POST
request (
CF-Cache-Status
always returns
DYNAMIC
for this response).
Was this page helpful?