mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-11 20:06:58 +00:00
[Docs Site] noindex index.md pages (#24362)
This commit is contained in:
parent
e8c917e677
commit
d4f87053ce
2 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ export default class extends WorkerEntrypoint<Env> {
|
|||
return new Response(markdown, {
|
||||
headers: {
|
||||
"content-type": "text/markdown; charset=utf-8",
|
||||
"x-robots-tag": "noindex",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@ describe("Cloudflare Docs", () => {
|
|||
const response = await SELF.fetch(request);
|
||||
|
||||
expect(response.status).toBe(200);
|
||||
expect(response.headers.get("x-robots-tag")).toBe("noindex");
|
||||
|
||||
const text = await response.text();
|
||||
expect(text).toMatchInlineSnapshot(`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue