Skip to content

feat: use ETag conditional requests to reduce idle polling subrequests#39

Merged
liplus-lin-lay merged 1 commit intomainfrom
38-etag-conditional-requests
Apr 6, 2026
Merged

feat: use ETag conditional requests to reduce idle polling subrequests#39
liplus-lin-lay merged 1 commit intomainfrom
38-etag-conditional-requests

Conversation

@liplus-lin-lay
Copy link
Copy Markdown
Member

Refs #38

GitHub APIの条件付きリクエスト(If-None-Match / ETag)を導入し、アイドル時のcronポーリングで発生するサブリクエスト数を削減する。304 Not Modified応答時はwatermark更新もスキップし、1リポジトリあたり3→2サブリクエストに削減。

#38)

GitHub APIの条件付きリクエスト(If-None-Match / ETag)を導入し、
アイドル時のcronポーリングで発生するサブリクエスト数を削減する。
304 Not Modified応答時はwatermark更新もスキップし、
1リポジトリあたり3→2サブリクエストに削減。

- fetchIssuePage: If-None-Matchヘッダ送信 + cache: "no-store" + 304ハンドリング
- fetchAllIssues: page 1のETag取得・304伝播
- pollRepo: 304時の早期リターン(watermark POST スキップ)
- IssueStore: watermarkスキーマにetagフィールド追加 + ALTER TABLE移行
- docs: ポーリング戦略にETag条件付きリクエストを追記

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
github-rag-mcp 8a13cd2 Apr 06 2026, 01:38 AM

@liplus-lin-lay liplus-lin-lay merged commit b860200 into main Apr 6, 2026
3 checks passed
@liplus-lin-lay liplus-lin-lay deleted the 38-etag-conditional-requests branch April 6, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use GitHub API conditional requests (ETag) to reduce idle polling subrequests

1 participant