cloudflare / cloudflare/lua-upstream-cache-nginx-module

Every second request goes to backend.

オープン
#1 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
124
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

説明

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,

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

README の例、特に header_filter_by_lua の設定から始め、プロキシ経由の nginx サーバーに対する交互のリクエストを再現します。この設定がある場合とない場合で、cache-status ヘッダーと cache-file の作成を比較します。完了条件は、文書化された例によって報告されている交互の MISS または EXPIRED 応答が発生するかどうかを判断し、影響を受ける動作を文書化または修正することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, lua, nginx
領域
backend, performance
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。