feat(website): add search-intent titles, FAQ schema, and breadcrumbs
All checks were successful
CI — Website / Website — typecheck, build (pull_request) Successful in 1m2s
All checks were successful
CI — Website / Website — typecheck, build (pull_request) Successful in 1m2s
Give Google unique snippets and FAQ rich results, and keep robots/sitemap from being cached as HTML. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -82,7 +82,12 @@ const server = createServer((req, res) => {
|
||||
}
|
||||
|
||||
const type = MIME[extname(file).toLowerCase()] ?? 'application/octet-stream';
|
||||
res.writeHead(status, { 'Content-Type': type });
|
||||
const headers = { 'Content-Type': type };
|
||||
const base = file.replace(/\\/g, '/');
|
||||
if (base.endsWith('/robots.txt') || base.endsWith('/sitemap.xml')) {
|
||||
headers['Cache-Control'] = 'public, max-age=300';
|
||||
}
|
||||
res.writeHead(status, headers);
|
||||
if (req.method === 'HEAD') {
|
||||
res.end();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user