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