Cache API usage in worker to cache POST requests.

Hey I wanted to cache POST requests to one of my APIs and I seem to be stuck with CacheAPI. That's the code: https://anonpaste.io/share/29c8fc4d04 (sorry for link but there is char limit of 2000). I'm never getting anything out of cache, despite the cache.put being ok. As you can see that cache CHANGES the original URL so kinda tries to act like a caching proxy for POST urls. What am I doing wrong here?
AnonPaste - Share Text, Images, and Files Anonymously
export default { async fetch(request, env, ctx) { async function sha256(message) { // encode a
3 Replies
Walshy
Walshy3mo ago
I see you looked at the cache POST tutorial already, nice ty hmm the code looks ok have you got a repro url?
egg
egg3mo ago
I got the same thing happening, cache promises just getting stuck
Walshy
Walshy3mo ago
That sounds like something different, please make a new thread
Want results from more Discord servers?
Add your server