rcoopr
CDCloudflare Developers
•Created by rcoopr on 7/15/2024 in #workers-help
Caching example
https://developers.cloudflare.com/workers/examples/cache-post-request/
In this example, a POST request is cached. However, when there's a cache miss, we have the line
response = await fetch(request)
but isn't that just going to hit the worker again?
I am trying to achieve something similar, but am looking for a way to encode the 'forwarding' url in my request, and wondering what the best way to do it is - query params, pathname, in the body or custom headers or something else?3 replies