cloudflare · Cloudflare Workers Docs
Workers Respond with another site
Implements a Cloudflare Worker that acts as a proxy to fetch and return the response from an external website.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Respond with another site
Implements a Cloudflare Worker that acts as a proxy to fetch and return the response from an external website.
When To Use
Use when you need to build a proxy or middleware that fetches and serves content from a different URL within a Worker environment.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-respond-with-another-site-workflow-guide.md | A Cloudflare Workers example demonstrating how to fetch and return a response from an external website. | Questions about a Cloudflare Workers example demonstrating how to fetch and return a response from an external website. |
examples/workers-examples-respond-with-another-site-cloudflare-workers-respond-wi.text | A Cloudflare Worker script that intercepts incoming GET requests and fetches content from an external URL. | Exact payloads, commands, or snippets shown in A Cloudflare Worker script that intercepts incoming GET requests and fetches content from an external URL. |
examples/workers-examples-respond-with-another-site-cloudflare-workers-respond-wi-2.text | A Cloudflare Worker script that intercepts incoming GET requests and fetches content from an external URL to serve as a proxy response. | Exact payloads, commands, or snippets shown in A Cloudflare Worker script that intercepts incoming GET requests and fetches content from an external URL to serve as... |
examples/workers-examples-respond-with-another-site-cloudflare-workers-python-res.text | A Python implementation of a Cloudflare Worker that intercepts requests and proxies them to another site. | Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker that intercepts requests and proxies them to another site. |
What This Skill Covers
- Respond to the Worker request with the response from another website (example.com in this example).
- Main sections:
Tags.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/examples/respond-with-another-site
