Skip to content

Static Assets _headers rules can only contain a single "splat" wildcard #23472

@petebacondarwin

Description

@petebacondarwin

Existing documentation URL(s)

https://developers.cloudflare.com/workers/static-assets/headers/#prevent-your-workersdev-urls-showing-in-search-results

What changes are you suggesting?

This rule matcher is not correct: https://*.workers.dev/*, since you can only use * once per URL.
It is possible to achieve this using named placeholders, I believe: `https://:subdomain.workers.dev/:path.

So I think we should change the example to be:

https://:subdomain.workers.dev/:path
  X-Robots-Tag: noindex

or perhaps just

https://:subdomain.workers.dev/*
  X-Robots-Tag: noindex

Additional information

Originally reported in workers-sdk: cloudflare/workers-sdk#9865

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions