Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always bypass cache when ?write=true #18

Closed
wants to merge 3 commits into from

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Jan 29, 2020

The npm CLI makes GET requests with ?write=true in some cases where it's
intending to send an immediate PUT or DELETE. Always bypass the cache
for such requests, mirroring the behavior of the registry caching
mechanisms.

Pairing with @nomadtechie

The npm CLI makes GET requests with ?write=true in some cases where it's
intending to send an immediate PUT or DELETE.  Always bypass the cache
for such requests, mirroring the behavior of the registry caching
mechanisms.
@isaacs
Copy link
Contributor Author

isaacs commented Jan 29, 2020

Travis failure is because our CI detection is too good, so the test that verifies that you're not in CI is failing on CI, as one might expect.

I can add a workaround later.

Copy link

@darcyclarke darcyclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

@isaacs isaacs closed this in 1770f1b Feb 14, 2020
@isaacs
Copy link
Contributor Author

isaacs commented Feb 14, 2020

Published on 6.0.2

@wraithgar wraithgar deleted the isaacs/respect-write-true branch April 22, 2021 17:33
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.

2 participants