So I’m new to Cloudflare workers and need some help figuring out the in and outs of things. I have a basic project set up that uses routes and reads the routes/URLs to provide different responses. In my example, if I’m going to [url]/[some name] it redirects to a JSON, but if we simply go to [url], a static webpage is displayed. I want my HTMLRewrite to hit once we’re in this static webpage. Now, the way I’m accessing this page is directly calling fetch([url]) as a response, but I’m wondering if there’s any way to store the resulting page so I can further call HTMLRewrite on it. I’m looking for information regarding it, or some helpful steps rather than a complete solution cause that’d defeat the purpose of playing around and trying to learn it.
Thanks!