Count downloads from content delivery network

オープン
#1,517 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@LaurentRDC がすでに取り組んでいます。

2026年10月6日 から。

  • #1525 @LaurentRDC による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
haskell
領域
api, backend

調査の方向性

Start by reviewing the download endpoint and the linked discussion in issue #1342, then verify how the current CDN caching configuration is applied. Confirm how to add Cache-Control: no-store, record the download statistic, and return an HTTP 302 to the CDN-backed endpoint. Done means reliable counts without disrupting CDN delivery, with the dependency on issue #1342 resolved.

索引モデルが issue の本文から書いたものです。

説明

Following my comment here, we can get reliable download counts despite the existence of a CDN via a redirection scheme:

  • Add the Cache-Control: no-store header for the download endpoint;
    • Log the download statistic.
  • Return HTTP302 (Redirect) to another endpoint with the current CDN caching configuration.

I am happy to implement this feature.

One point that is unclear is whether this issue should be address after https://github.com/haskell/hackage-server/issues/1342, given that the server will necessarily process more download counts.

主要言語
Haskell
スター
471
フォーク
228
平均マージ
5日 6時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

haskell/hackage-server のほかの issue

haskell/hackage-server の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。