Title: feat(coderd/externalauth/gitprovider): move revalidation into an http.RoundTripper · Issue #28139 · coder/coder · GitHub
Open Graph Title: feat(coderd/externalauth/gitprovider): move revalidation into an http.RoundTripper · Issue #28139 · coder/coder
X Title: feat(coderd/externalauth/gitprovider): move revalidation into an http.RoundTripper · Issue #28139 · coder/coder
Description: Follow-up from #27711 (CRF-17). The ETag/conditional-request cache currently lives inside githubProvider.decodeJSON, which forced provider instances to become long-lived and required memoization in Config.Git. The structural alternative ...
Open Graph Description: Follow-up from #27711 (CRF-17). The ETag/conditional-request cache currently lives inside githubProvider.decodeJSON, which forced provider instances to become long-lived and required memoization in...
X Description: Follow-up from #27711 (CRF-17). The ETag/conditional-request cache currently lives inside githubProvider.decodeJSON, which forced provider instances to become long-lived and required memoization in...
Opengraph URL: https://github.com/coder/coder/issues/28139
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(coderd/externalauth/gitprovider): move revalidation into an http.RoundTripper","articleBody":"Follow-up from #27711 (CRF-17).\n\nThe ETag/conditional-request cache currently lives inside `githubProvider.decodeJSON`, which forced provider instances to become long-lived and required memoization in `Config.Git`. The structural alternative is to put the cache in an `http.RoundTripper` wrapping one long-lived client dedicated to git providers, keyed on `req.URL` plus auth scope, synthesizing the cached 200 on a 304.\n\nThis would:\n- Remove the memoization from `Config.Git` (providers go back to stateless value objects)\n- Give GitLab polling revalidation (currently gets nothing)\n- Give `fetchDiff` revalidation (currently bypasses `decodeJSON`)\n- Make `Config` copyable again\n- Remove the `HTTPClient` field coupling\n\nThe design is not changing in #27711; that PR ships the working memoization approach. This issue tracks the evaluation of the transport-level redesign.\n\n> 🤖 Generated by Coder Agents on behalf of @johnstcn.","author":{"url":"https://github.com/johnstcn","@type":"Person","name":"johnstcn"},"datePublished":"2026-08-13T17:37:01Z","url":"https://github.com/coder/coder/issues/28139"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f1ca87a2-9621-2d54-257f-54f1a26a7e42 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 900C:3047DC:599C27:76B807:6B04C25C |
| html-safe-nonce | 1a2c8dd40c9e186af127cb676cc81749d1428d366d337376a2063ceba1095647 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDBDOjMwNDdEQzo1OTlDMjc6NzZCODA3OjZCMDRDMjVDIiwidmlzaXRvcl9pZCI6IjgwNDMwODc1NzIyNzg0OTM3ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9549b2929b64b9656785416ad8c6ae42ca049748f9bf6a27a7277ed4ae88de1d |
| hovercard-subject-tag | issue:5144128942 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/28139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c14f48f6e1e3e6f36063751d88f19b49417aafd7b69ba92e6b2d7cd35f238020/coder/coder/issues/28139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c14f48f6e1e3e6f36063751d88f19b49417aafd7b69ba92e6b2d7cd35f238020/coder/coder/issues/28139 |
| og:image:alt | Follow-up from #27711 (CRF-17). The ETag/conditional-request cache currently lives inside githubProvider.decodeJSON, which forced provider instances to become long-lived and required memoization in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnstcn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width