Count downloads from content delivery network
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di haskell/hackage-server
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 22/100
haskell/hackage-server#1530 · 4 commenti · 2 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
haskell/hackage-server#1528 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
haskell/hackage-server#1523 ·
-
hackage-mirror can't mirror old packagesForse già presa @TTyChud l’ha presa 7 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
haskell/hackage-server#1515 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
haskell/hackage-server#1503 ·
Tutte le issue di haskell/hackage-server
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
haskell/bytestring#730 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
seal-harness/seal-harness#399 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-frp/reflex#563 ·