GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — Package-manager shims hit the registry on every invocation when the registry origin has a credential, and lose the documented cache fallback · Issue #3445 · voidzero-dev/vite-plus Closed Labels - P4: importantViolates documented behavior or significantly affects performance (priority)triage: fix verified DescriptionWhat happensWith Measured on vp 1.6.0 (Linux),
The token does not even have to be valid: a revoked token behaves the same, because only its presence is checked. Root cause
// A persisted response authenticated as one user must not be reused by // another user of the same registry URL. ... if urls.iter().any(|url| npm_config.has_auth_for_origin(url)) { return fetch_dist_tag_version(package_manager_type, tag, &urls, npm_config).await; } For any origin with a credential (added in #2624 / 47c7805) the cache is neither read nor written, and — unlike the unauthenticated path below it — an expired cached value is not used when the fetch fails. Two consequences:
So SuggestionThe #2624 rationale (a response authenticated as user A must not reach user B through a URL-keyed cache) is legitimate for private registries, but the trigger is broader than that concern:
I'm happy to send a PR for whichever of these you prefer. Activity
MetadataMetadataAssigneesLabels- P4: importantViolates documented behavior or significantly affects performance (priority)triage: fix verified TypeFieldsPriority None yet ProjectsMilestoneRelationshipsDevelopmentIssue actions | |||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |