Skip to content

Commit 80a0c76

Browse files
authored
[codex] add discovery headers (#129)
* add discovery headers * split discovery link headers
1 parent ad1f4c3 commit 80a0c76

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎static/_headers‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@
1313
# Cache-Control for HTML pages: no long-term cache
1414
Cache-Control: public, max-age=0, must-revalidate
1515

16+
# Homepage discovery links for agents and API consumers
17+
/
18+
Link: </llms.txt>; rel="describedby"; type="text/plain"
19+
Link: </openAPI/content/v4.json>; rel="service-desc"; type="application/json"
20+
Link: </openAPI/oauth2-apis/v1.json>; rel="service-desc"; type="application/json"
21+
Link: </openAPI/search/v1.json>; rel="service-desc"; type="application/json"
22+
Link: </openAPI/user-related-apis/v1.json>; rel="service-desc"; type="application/json"
23+
Link: </docs/content_apis_versioned/content-apis/>; rel="service-doc"; type="text/html"
24+
Link: </docs/oauth2_apis_versioned/oauth-2-apis/>; rel="service-doc"; type="text/html"
25+
Link: </docs/search_apis_versioned/quran-foundation-search-api/>; rel="service-doc"; type="text/html"
26+
Link: </docs/user_related_apis_versioned/user-related-apis/>; rel="service-doc"; type="text/html"
27+
Link: </docs/tutorials/oidc/getting-started-with-oauth2/>; rel="service-doc"; type="text/html"
28+
Link: </docs/quickstart/>; rel="service-doc"; type="text/html"
29+
Link: </docs/tutorials/oidc/user-apis-quickstart/>; rel="service-doc"; type="text/html"
30+
Link: </docs/user_related_apis_versioned/scopes/>; rel="service-doc"; type="text/html"
31+
Link: </request-access/>; rel="service-doc"; type="text/html"
32+
1633
# Cache hashed JavaScript and CSS files for 1 year (they have content hash in filename)
1734
/assets/js/*.js
1835
Cache-Control: public, max-age=31536000, immutable
@@ -41,6 +58,10 @@
4158
/sitemap.xml
4259
Cache-Control: public, max-age=86400
4360

61+
/robots.txt
62+
! Cache-Control
63+
Cache-Control: public, max-age=86400
64+
4465
/opensearch.xml
4566
Cache-Control: public, max-age=86400
4667

0 commit comments

Comments
 (0)