Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Page Rules

Explains the execution order and interaction between Cloudflare Workers and Page Rules, specifically detailing which Page Rule features are disabled when a request matches a Worker route.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Page Rules

Explains the execution order and interaction between Cloudflare Workers and Page Rules, specifically detailing which Page Rule features are disabled when a request matches a Worker route.

When To Use

Use when you need to troubleshoot why specific Page Rules are not triggering for requests handled by a Worker or when designing a request flow that relies on both Workers and Page Rule features.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-configuration-with-page-rules-workflow-guide.mdDocumentation explaining how to configure and apply page rules to Cloudflare Workers requests.Questions about documentation explaining how to configure and apply page rules to Cloudflare Workers requests.

What This Skill Covers

  • Page Rules trigger certain actions whenever a request matches one of the URL patterns you define. You can define a page rule to trigger one or more actions w...
  • Main sections: Page Rules with Workers, Affected Page Rules, Always Use HTTPS, Automatic HTTPS Rewrites, Browser Cache TTL.

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/configuration/workers-with-page-rules