fix: ask reddit.com with the firefox fingerprint first

Reddit's edge answers the chrome fingerprint with a 403 or a 429 while
letting firefox through, and it allows anonymous readers about ten
requests a minute per address, so the wasted chrome attempt on every
read was costing a real share of that budget. identityOrder() picks the
order per host: firefox then chrome for reddit.com and its subdomains,
chrome then firefox everywhere else, with the same downgrade chain and
plain fetch fallback as before. Refs #52.
This commit is contained in:
only-cli
2026-09-04 09:01:13 -04:00
parent 431dad3abd
commit 5b30fbfbc1
4 changed files with 70 additions and 8 deletions
+10
View File
@@ -3,6 +3,16 @@
Notable changes per release. Releases before 0.4.0 are listed at
[github.com/only-cli/oc/releases](https://github.com/only-cli/oc/releases).
## Unreleased
### Changed
- Requests to reddit.com present the Firefox fingerprint first and fall back
to Chrome, the reverse of every other site. Reddit's edge answers the Chrome
fingerprint with a 403 or a 429 while letting Firefox through, and since it
allows anonymous readers about ten requests a minute per address, the wasted
Chrome attempt was costing a real share of that budget on every read (#52).
## 0.5.2
### Changed