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: cache bust http cache on lockfile integrity mismatch #28087

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Feb 12, 2025

Cache busts the http cache when the lockfile integrity doesn't match what's in the cache. This will help when someone's lockfile is in line with the remote server, but their local cache isn't.

@dsherret dsherret requested a review from bartlomieju February 12, 2025 14:32
@dsherret dsherret enabled auto-merge (squash) February 12, 2025 14:52
@@ -1,4 +1,5 @@
Download http://localhost:4545/lockfile/basic/mod.ts
Download http://localhost:4545/lockfile/basic/mod.ts
Copy link
Member Author

Choose a reason for hiding this comment

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

It redownloads files if they've never been downloaded. I think it's fine because it's a rare error case.

@dsherret dsherret merged commit a2fafd3 into denoland:main Feb 13, 2025
18 checks passed
@dsherret dsherret deleted the fix_cache_bust_lockfile_integrity branch February 13, 2025 12:23
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