Closed
Description
Verify latest release
- I verified that the issue exists in the latest pnpm release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI, Lockfile, Store
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
pnpm add https://pkg.pr.new/vite@main
Describe the Bug
As we discussed in discord, https://pkg.pr.new/vite@main
redirects to another url (a git commit hash url, which is safe to cache) but pnpm will cache the main url instead.
this creates unexpected behavior as mentioned in stackblitz-labs/pkg.pr.new#281
Expected Behavior
As suggested by @zkochan, what pnpm can do is only caching the final url rather than the original url.
Which Node.js version are you using?
v22.11.0
Which operating systems have you used?
- macOS
- Windows
- Linux
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response