Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-respond-with-another-site-workflow-guide.mdA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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