You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fdddc95
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: services/site/AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Read the design-system rules in `DESIGN.md` (also shown at `/dev/components#rule
5
5
## Public pages
6
6
7
7
- When you add, remove or rename a public page, keep `/sitemap.xml`, `llms.txt`, search and the page's `.md` version in sync; run the sitemap test (`bun test test/sitemap.test.ts` from this directory).
8
-
-`/sitemap.xml` is the only sitemap in `robots.txt`. It is an index of `sitemapFiles` in `src/lib/sitemap.ts`: this app's `/sitemap-pages.xml`, the docs sitemap `/docs/sitemap.xml`, and the Data and Console sitemaps.
8
+
-`/sitemap.xml` is the only sitemap in `robots.txt`. It is an index of `sitemapFiles` in `src/lib/sitemap.ts`: this app's `/sitemap-pages.xml`, the V2 docs sitemap `/v2/sitemap.xml`, and the Data and Console sitemaps.
9
9
-`/sitemap-pages.xml` (`src/routes/sitemap-pages.xml.ts`) lists every page route automatically. To leave a page out, add it to `sitemapExclusions` in `src/lib/sitemap.ts` with a reason. A route with parameters needs an entry in `dynamicRoutes` there, or an exclusion.
10
10
- Do not add a static `public/sitemap.xml`, because it would hide the generated one.
11
11
- The view-source comment's FOR HUMANS rows start with the main nav in the same order; they're generated from the nav data, so update the nav, not the comment.
Copy file name to clipboardExpand all lines: services/site/src/lib/html-cache.ts
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,9 @@ import { platformFromUserAgent } from "~/lib/platform"
21
21
// would get the same HTML, and Vary (which Cloudflare's cache would apply to raw header values) plays
22
22
// no part. The build id is in the key too, so a deploy starts from an empty cache without a purge.
23
23
//
24
-
// Never cached: a response that sets other cookies, and any status but 200. A render that used a
25
-
// stand-in for GitHub's data (lib/edge-cache.ts) is kept fresh for 30 seconds only.
24
+
// Never cached: a response that sets other cookies, and any status but 200; a server error (a
25
+
// release page while GitHub is down) also tells browsers not to keep it, and to retry in a minute. A render that used a stand-in for GitHub's data (lib/edge-cache.ts)
0 commit comments