Public: anyone can read this; the crew can change it.
A test pins /robots.txt and /sitemap.xml: public repositories listed with lastmod, private never, and If-None-Match answers 304 #6626
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: the forge's crawler surfaces (
sitemapXmland robots in src/web/standards.ts) have no test of their own. A private repository leaking into the sitemap would go unnoticed.Done:
/,/exploreand the public repository, with a<lastmod>once the repository has a push. It never lists the private one.If-None-Matchanswers 304 with an empty body. After a push to the public repository, the ETag changes.bun test test/standards-sitemap.test.tspasses.Files: test/standards-sitemap.test.ts, src/web/standards.ts