From 8fdec7ab4ef0c6c6177fc84ab661bf6dc52c3c1a Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Wed, 25 Feb 2026 17:09:11 -0800 Subject: [PATCH 1/2] Enhance REST API documentation with conditional requests Added information about conditional requests in the REST API. --- .../comparing-githubs-rest-api-and-graphql-api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md b/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md index 1efab397e231..23f70617df27 100644 --- a/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md +++ b/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md @@ -82,3 +82,5 @@ mutation { } } ``` + +The REST API also has the concept of conditional requests, which allow you to use ETAG and If-None-Modified headers to observe if the previous query has changed without incurring a rate limit query charge. For more info, see: [AUTOTITLE](/rest/using-the-rest-api/best-practices-for-using-the-rest-api#use-conditional-requests-if-appropriate) From 1897929c49b4f92b5574f31098383579fe65ce58 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Thu, 26 Feb 2026 09:13:19 -0800 Subject: [PATCH 2/2] Update content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../comparing-githubs-rest-api-and-graphql-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md b/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md index 23f70617df27..c681314d00b8 100644 --- a/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md +++ b/content/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api.md @@ -83,4 +83,4 @@ mutation { } ``` -The REST API also has the concept of conditional requests, which allow you to use ETAG and If-None-Modified headers to observe if the previous query has changed without incurring a rate limit query charge. For more info, see: [AUTOTITLE](/rest/using-the-rest-api/best-practices-for-using-the-rest-api#use-conditional-requests-if-appropriate) +The REST API also has the concept of conditional requests, which allow you to use ETAG and If-None-Modified headers to observe if the previous query has changed without incurring a rate limit query charge. For more information, see [AUTOTITLE](/rest/using-the-rest-api/best-practices-for-using-the-rest-api#use-conditional-requests-if-appropriate).