Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ private static CurseForgeFile resolveModpackFile(SharedFetch preparedFetch, UriB
) {
// NOTE latestFiles in mod is only one or two files, so retrieve the full list instead
final GetModFilesResponse resp = preparedFetch.fetch(
uriBuilder.resolve("/mods/{modId}/files", mod.getId())
// 'latest' parameter is not recognized by the API but rather used to force it not to return
// a cached listing
uriBuilder.resolve("/mods/{modId}/files?latest={ts}", mod.getId(), System.currentTimeMillis())
)
.toObject(GetModFilesResponse.class)
.execute();
Expand Down