cloudflare / cloudflare/lua-upstream-cache-nginx-module
Every second request goes to backend.
- Lingua principale
- C
- Stelle
- 124
- Fork
- 40
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello,
I was just trying to experiment this module and I noticed that every second request goes to backend and every second request's response header says cache-status "EXPIRED" regardless of first request is MISS or EXPIRED. After that all subsequent requests get HIT until it actually expired according to time defined in header_filter_by_lua .
I have used the same code which is given in readme file. And proxy to same nginx server running at higher port.
I have also noticed that the cache file is being created on first request only which is expected behavior and if I remove this header_filter_by_lua code, each second request gets cache HIT.
Is this same code(which is given in readme) working in production servers or is there any change in readme?
Thanks,
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dall’esempio del README, in particolare dalla configurazione header_filter_by_lua, e riproduci le richieste alternate verso il server nginx sottoposto a proxy. Confronta gli header cache-status e la creazione del cache-file con e senza questa configurazione. Il lavoro è completato quando si determina se l’esempio documentato causa le risposte alternate MISS o EXPIRED segnalate e si documenta o corregge il comportamento interessato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, lua, nginx
- Ambito
- backend, performance
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100