Count downloads from content delivery network
Đá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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của haskell/hackage-server
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 22/100
haskell/hackage-server#1530 · 4 bình luận · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
haskell/hackage-server#1528 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
haskell/hackage-server#1523 ·
-
hackage-mirror can't mirror old packagesCó thể đã có người làm @TTyChud đã nhận 7 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 40/100
haskell/hackage-server#1515 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
haskell/hackage-server#1503 ·
Tất cả issue của haskell/hackage-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
haskell/bytestring#730 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
seal-harness/seal-harness#399 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
add previously overlooked rulesĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
reflex-frp/reflex#563 ·