Skip to content

Clarify Workers Routes hostname * prefix behavior #25763

@timkelty

Description

@timkelty

Existing documentation URL(s)

What changes are you suggesting?

It currently states:

*example.com/ matches https://example.com/ and https://www.example.com/.

But it doesn't clarify if that would also match https://myexample.com/.

Based on how the * suffix works for the path, I would suspect that it would, but it also seems like that would make it a less viable choice, vs 2 routes (example.com/*, *.example.com/*).

Additional information

Based on some quick tests, it looks like the * prefix will match, regardless of whether the wildcard matches the subdomain or the actual domain itself.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions