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

Always download Launcher Manifest, but do it conditionally #67

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

shartte
Copy link
Contributor

@shartte shartte commented Dec 6, 2023

Fixes #66 by using upToDateWhen to indicate the launcher manifest download task is never up-to-date. To mitigate the re-download, use If-Modified-Since in all HTTP download requests if the target file already exists.

The @DisableCachingByDefault only disabled the file-cache, but not the up-to-date check. That means the task will still not be run if Gradle thinks that it is up-to-date (which it usually will be). For immutable files like the version-manifests, this doesn't matter, but for the launcher manifest which will change over time, this causes it to never be updated.

This does currently not use DownloadFileAction, since there's no way to return any information from the workqueue. This means I cannot set didWork accordingly.

…ifest download task is never up-to-date. To mitigate the re-download, use If-Modified-Since in all HTTP download requests if the target file already exists.
@marchermans marchermans merged commit da23540 into neoforged:NG_7.0 Dec 6, 2023
2 checks passed
@shartte shartte deleted the fix-66 branch December 6, 2023 13:31
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.

Cached launcher manifest is not invalidated
2 participants