Count downloads from content delivery network

Aperta
#1,517 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@LaurentRDC ci sta già lavorando.

Dal 6/10/2026.

  • #1525 di @LaurentRDC — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
haskell
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Haskell
Stelle
471
Fork
228
Merge medio
5g 6h
PR unite (30g)
3

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di haskell/hackage-server

Tutte le issue di haskell/hackage-server

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.