Count downloads from content delivery network

Đang mở
#1,517 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

@LaurentRDC đang làm issue này rồi.

Từ ngày 6/10/2026.

  • #1525 của @LaurentRDC — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
haskell
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Haskell
Star
471
Fork
228
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của haskell/hackage-server

Tất cả issue của haskell/hackage-server

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.