mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user