From 7a0c423357818b19eb431775452b1357bc7fd3eb Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 31 Jul 2025 09:17:42 +0200 Subject: Implement support for HTTP 429 Too Many Requests (#7760) * Implement support for HTTP 429 Too Many Requests Will obey the corresponding HTTP `Retry-After` header at domain level. * Implement 503 Service Unavailable * Sanitize Retry-After * Reduce default value when Retry-After is absent And make configuration parameter * Retry-After also for favicons --- data/Retry-After/.gitignore | 1 + data/Retry-After/README.md | 2 ++ data/Retry-After/index.html | 13 +++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 data/Retry-After/.gitignore create mode 100644 data/Retry-After/README.md create mode 100644 data/Retry-After/index.html (limited to 'data') diff --git a/data/Retry-After/.gitignore b/data/Retry-After/.gitignore new file mode 100644 index 000000000..2211df63d --- /dev/null +++ b/data/Retry-After/.gitignore @@ -0,0 +1 @@ +*.txt diff --git a/data/Retry-After/README.md b/data/Retry-After/README.md new file mode 100644 index 000000000..f1d016624 --- /dev/null +++ b/data/Retry-After/README.md @@ -0,0 +1,2 @@ +Folder to store domains for which there is a pending HTTP `429 Too Many Requests`. +The `Retry-After` value is added to current time and stored in the `*.txt` file modification time. diff --git a/data/Retry-After/index.html b/data/Retry-After/index.html new file mode 100644 index 000000000..85faaa37e --- /dev/null +++ b/data/Retry-After/index.html @@ -0,0 +1,13 @@ + + + + + +Redirection + + + + +

Redirection

+ + -- cgit v1.2.3