Skip to content

fix: ask reddit.com with the firefox fingerprint first - #56

Merged
only-cli merged 1 commit into
mainfrom
fix/reddit-firefox-first
Sep 4, 2026
Merged

fix: ask reddit.com with the firefox fingerprint first#56
only-cli merged 1 commit into
mainfrom
fix/reddit-firefox-first

Conversation

@only-cli

@only-cli only-cli commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Follow-up to #53 (refs #52). While probing the feeds, the chrome fingerprint drew 403 and 429 from reddit.com where firefox and plain curl got 200. viaImpers already retried with firefox on a blocked first attempt, but on a site that allows anonymous readers about ten requests a minute per address, the wasted chrome attempt was a real share of the budget on every read.

  • identityOrder(target) in src/fetch.js returns the identity order for a URL: firefox then chrome for reddit.com and its subdomains, chrome then firefox everywhere else. The downgrade chain (blocked or refused first identity, then the second, then plain fetch) is unchanged.
  • Two tests: the reddit order and subdomain matching (with notreddit.com and reddit.com.example kept on the default), and a refused firefox fingerprint on reddit.com still falling back to chrome.
  • CHANGELOG entry under Unreleased; one README sentence in the access paragraph.

Live check: oc reddit sub ClaudeAI -v reports HTTP 200 via impers:firefox on the first attempt, 478 tokens. npm test: 217 passing.

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.
@only-cli
only-cli merged commit 962356c into main Sep 4, 2026
4 checks passed
@only-cli
only-cli deleted the fix/reddit-firefox-first branch September 4, 2026 13:02
@only-cli only-cli mentioned this pull request Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant