Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support for stale-while-invalidate

オープン
#204 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

エラーで言及されている cachecontrol.controller の処理から始め、RFC-5861 と RFC-7234 の参照を比較し、issue における “invalidate” と “revalidate” の一貫しない使用に注意する。Done では、このディレクティブの意図された処理を定義してテストし、有効な入力が未知のものとして誤って報告されないようにする。

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

説明

RFC-5861 introduces a cache-control extension "stale-while-invalidate":

When present in an HTTP response, the stale-while-revalidate Cache-
Control extension indicates that caches MAY serve the response in
which it appears after it becomes stale, up to the indicated number
of seconds.

If a cached response is served stale due to the presence of this
extension, the cache SHOULD attempt to revalidate it while still
serving stale responses (i.e., without blocking).

We're talking to a service that uses this directive, which is causing our client to log an error:

cachecontrol.controller | Ignoring unknown cache-control directive: stale-while-revalidate

AFAICT stale-while-invalidate is not an official directive and is not part of RFC-7234 (caching), but there might be value in supporting it in cachecontrol nonetheless.

主要言語
Python
スター
505
フォーク
153
平均マージ
5日 6時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

psf/cachecontrol のほかの issue

psf/cachecontrol の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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