Skip to content

Clarify wildcard route matching behavior#28132

Merged
elithrar merged 1 commit intoproductionfrom
opencode/issue25763-20260206110907
Feb 13, 2026
Merged

Clarify wildcard route matching behavior#28132
elithrar merged 1 commit intoproductionfrom
opencode/issue25763-20260206110907

Conversation

@ask-bonk
Copy link
Contributor

@ask-bonk ask-bonk bot commented Feb 6, 2026

The changes look good. Here's a summary of what was added to the "Hostnames may optionally begin with *" section:

  1. A caution admonition explaining that * matches zero or more of any character (not just subdomain separators), so *example.com will match hostnames like myexample.com that aren't actually subdomains of example.com. It recommends using two separate routes (example.com/* and *.example.com/*) if you only want to match the domain and its subdomains.

  2. A comparison table with 4 example URLs showing the difference between *example.com/* and *.example.com/*:

    • example.com — matched by * prefix, not by *. prefix
    • www.example.com/path — matched by both
    • myexample.com — matched by * prefix (the surprising case from the issue), not by *. prefix
    • not-example.com — matched by neither (because it doesn't end with example.com)

Closes #25763

github run

Co-authored-by: elithrar <elithrar@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @korinne, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @cloudflare/wrangler, @mattietk

@elithrar elithrar enabled auto-merge (squash) February 6, 2026 12:35
@elithrar elithrar merged commit bbf0c07 into production Feb 13, 2026
12 checks passed
@elithrar elithrar deleted the opencode/issue25763-20260206110907 branch February 13, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify Workers Routes hostname * prefix behavior

8 participants