nodejs / nodejs/node

Don't cache HTTP errors in the module map

Open
#64,517 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
122k
Forks
37.3k
Avg merge
4d 2h
Merged PRs (30d)
283

Description

The current spec behavior doesn't allow developers to retry failed module imports, as the failure result (either an HTTP error or a network failure) gets cached.

https://github.com/whatwg/html/pull/10327 fixes that. Browsers/runtime environments should implement that change.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the WHATWG HTML pull request 10327 and compare its module-map behavior with Node.js's module loading implementation. Trace how failed HTTP and network imports are cached, then verify that retrying those imports succeeds after the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.