René's URL Explorer Experiment


Title: PR tools re-fetch data without conditional requests (ETag / If-None-Match) · Issue #3025 · github/github-mcp-server · GitHub

Open Graph Title: PR tools re-fetch data without conditional requests (ETag / If-None-Match) · Issue #3025 · github/github-mcp-server

X Title: PR tools re-fetch data without conditional requests (ETag / If-None-Match) · Issue #3025 · github/github-mcp-server

Description: Summary The REST client is built with a transport chain (http.DefaultTransport → user-agent → bearer-auth) that has no response-cache or conditional-request layer, so pull-request tools (pull_request_read with get / get_files / get_commi...

Open Graph Description: Summary The REST client is built with a transport chain (http.DefaultTransport → user-agent → bearer-auth) that has no response-cache or conditional-request layer, so pull-request tools (pull_reque...

X Description: Summary The REST client is built with a transport chain (http.DefaultTransport → user-agent → bearer-auth) that has no response-cache or conditional-request layer, so pull-request tools (pull_reque...

Opengraph URL: https://github.com/github/github-mcp-server/issues/3025

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PR tools re-fetch data without conditional requests (ETag / If-None-Match)","articleBody":"### Summary\r\n\r\nThe REST client is built with a transport chain (`http.DefaultTransport` → user-agent → bearer-auth) that has no response-cache or conditional-request layer, so pull-request tools (`pull_request_read` with `get` / `get_files` / `get_commits` / `get_reviews` / `get_status`, and `list_pull_requests`) issue unconditional `GET` requests. Repeated identical reads within or across sessions re-download full responses even when nothing has changed; the `ETag` GitHub returns is never captured or replayed as `If-None-Match`.\r\n\r\n### Where\r\n\r\n- Client/transport construction (single site): [`internal/ghmcp/server.go`](https://github.com/github/github-mcp-server/blob/main/internal/ghmcp/server.go) — `createGitHubClients()` wires `UserAgentTransport{ Transport: http.DefaultTransport }` (and `BearerAuthTransport`) with no caching transport.\r\n- Transport package has only user-agent / bearer / graphql-features round-trippers: [`pkg/http/transport/`](https://github.com/github/github-mcp-server/tree/main/pkg/http/transport).\r\n- PR tool handlers call `client.PullRequests.Get/ListFiles/ListCommits/ListReviews/List` unconditionally: [`pkg/github/pullrequests.go`](https://github.com/github/github-mcp-server/blob/main/pkg/github/pullrequests.go).\r\n\r\n### Impact on users\r\n\r\nGitHub's REST API supports conditional requests: replaying the previous `ETag` as `If-None-Match` returns `304 Not Modified` when nothing changed, and **`304` responses don't count against the token's primary rate limit**. Agentic sessions frequently re-read the same pull request (e.g. `get` → `get_files` → `get_reviews`, retries, multi-step reasoning). Without conditional requests, each re-read is a full response that spends rate-limit budget and bandwidth, making the token's limit easier to hit and slowing tool calls.\r\n\r\n### Example prompts that trigger repeated reads\r\n\r\n- \"Summarize PR #123, then list its changed files, then show review comments.\" (multiple reads of the same PR)\r\n- \"Watch PR #123 and tell me when checks pass.\" (repeated `get_status` / `get`)\r\n- \"Compare the files and commits in PR #123 and PR #124.\" (list + per-PR reads)\r\n\r\n### Suggested change\r\n\r\nInsert an ETag-revalidating `http.RoundTripper` at the single client-construction site in `createGitHubClients()`, below the user-agent transport: cache `{etag, body}` keyed by (auth scope, method, URL), send `If-None-Match` on GETs, and return the cached body on `304`. An always-revalidate ETag transport keeps tool results fresh (no stale window) while turning unchanged reads into cheap `304`s. The GraphQL client is unaffected (POST). This keeps results identical while reducing rate-limit pressure and bandwidth.\r\n","author":{"url":"https://github.com/joshfree","@type":"Person","name":"joshfree"},"datePublished":"2026-08-05T23:10:15Z","url":"https://github.com/github/github-mcp-server/issues/3025"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8588bd6b-e5ec-8531-1c39-3f8916f1be8c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8810:2EAB91:28178C3:35B0337:6B06BEAD
html-safe-nonceb671f7ded7c565a5db03d55f7e15e0c21173edf5fdc18be0c5ed852228fd392d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODEwOjJFQUI5MToyODE3OEMzOjM1QjAzMzc6NkIwNkJFQUQiLCJ2aXNpdG9yX2lkIjoiNzkwMTIwODc4NjU1ODY5NzEzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac27549255a0a68274ca992b218ae08988a56980d5f689efb733e2c0d59324574c
hovercard-subject-tagissue:5075998081
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3025/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eb2145e1e57f00e396cb9d9c270007cdabeee847dacd793082bf1cd7f6a5317e/github/github-mcp-server/issues/3025
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb2145e1e57f00e396cb9d9c270007cdabeee847dacd793082bf1cd7f6a5317e/github/github-mcp-server/issues/3025
og:image:altSummary The REST client is built with a transport chain (http.DefaultTransport → user-agent → bearer-auth) that has no response-cache or conditional-request layer, so pull-request tools (pull_reque...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejoshfree
hostnamegithub.com
expected-hostnamegithub.com
None32031aaff792fa7ad778f7418e1fbfc0d525a5779804329b769aa75230448a18
turbo-cache-controlno-preview
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release37014d914b7d14eede971655595f687a0202af40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/3025#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3025
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3025
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/3025
Reloadhttps://github.com/github/github-mcp-server/issues/3025
Reloadhttps://github.com/github/github-mcp-server/issues/3025
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues238 (238)https://github.com/github/github-mcp-server/issues
Pull requests228 (228)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
https://github.com/github/github-mcp-server
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3025
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3025
#3026https://github.com/github/github-mcp-server/pull/3026
PR tools re-fetch data without conditional requests (ETag / If-None-Match)https://github.com/github/github-mcp-server/issues/3025#top
#3026https://github.com/github/github-mcp-server/pull/3026
https://github.com/joshfree
joshfreehttps://github.com/joshfree
on Aug 5, 2026https://github.com/github/github-mcp-server/issues/3025#issue-5075998081
internal/ghmcp/server.gohttps://github.com/github/github-mcp-server/blob/main/internal/ghmcp/server.go
pkg/http/transport/https://github.com/github/github-mcp-server/tree/main/pkg/http/transport
pkg/github/pullrequests.gohttps://github.com/github/github-mcp-server/blob/main/pkg/github/pullrequests.go
Issue: Fix incorrect VS Code installation URL (both buttons point to Insiders) #123https://github.com/github/github-mcp-server/issues/123
Issue: Fix incorrect VS Code installation URL (both buttons point to Insiders) #123https://github.com/github/github-mcp-server/issues/123
Issue: Fix incorrect VS Code installation URL (both buttons point to Insiders) #123https://github.com/github/github-mcp-server/issues/123
Fix VS Code installation link #124https://github.com/github/github-mcp-server/pull/124
github-actionshttps://github.com/apps/github-actions
request ai reviewhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22request%20ai%20review%22
request ai reviewhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22request%20ai%20review%22
on Aug 5, 2026https://github.com/github/github-mcp-server/issues/3025#event-29038462705
joshfreehttps://github.com/joshfree
on Aug 7, 2026https://github.com/github/github-mcp-server/issues/3025#event-29132185813
Use strings.SplitSeq for Cache-Control and Vary parsinghttps://github.com/joshfree/github-mcp-server/commit/3d894b831a69ff7dfce2dc7d2bfda45b2ef8df22
3d894b8https://github.com/joshfree/github-mcp-server/commit/3d894b831a69ff7dfce2dc7d2bfda45b2ef8df22
joshfreehttps://github.com/joshfree
on Aug 19, 2026https://github.com/github/github-mcp-server/issues/3025#event-29690498315
Add ETag conditional requests to the REST transporthttps://github.com/joshfree/github-mcp-server/commit/64297be3e7cd5bd3f56cc46f20fc1c36c3f96040
https://docs.github.com/articles/closing-issues-via-commit-messages
64297behttps://github.com/joshfree/github-mcp-server/commit/64297be3e7cd5bd3f56cc46f20fc1c36c3f96040
Use strings.SplitSeq for Cache-Control and Vary parsinghttps://github.com/joshfree/github-mcp-server/commit/bfec548623e35f69d62bc0d07f98699677fe20e9
https://docs.github.com/articles/closing-issues-via-commit-messages
bfec548https://github.com/joshfree/github-mcp-server/commit/bfec548623e35f69d62bc0d07f98699677fe20e9
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Aug 25, 2026https://github.com/github/github-mcp-server/issues/3025#event-29976619096
Use strings.SplitSeq for Cache-Control and Vary parsinghttps://github.com/github/github-mcp-server/commit/e9581542233a23072c63a64a875c6166738b9850
e958154https://github.com/github/github-mcp-server/commit/e9581542233a23072c63a64a875c6166738b9850
SamMorrowDrumshttps://github.com/SamMorrowDrums
completedhttps://github.com/github/github-mcp-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3026https://github.com/github/github-mcp-server/pull/3026
on Aug 25, 2026https://github.com/github/github-mcp-server/issues/3025#event-29976619177
pullhttps://github.com/apps/pull
on Aug 25, 2026https://github.com/github/github-mcp-server/issues/3025#event-29977712664
Add ETag conditional requests to the REST transporthttps://github.com/Android-studio6/github-mcp-server/commit/a58b40d5e9f8961da97fbbfc9b6c8a9bfd0085b8
https://docs.github.com/articles/closing-issues-via-commit-messages
a58b40dhttps://github.com/Android-studio6/github-mcp-server/commit/a58b40d5e9f8961da97fbbfc9b6c8a9bfd0085b8
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/github-mcp-server/issues/3025
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3025
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.