Links
Tags
Creators
Details
1.2.1
Compatibility
Required content
Changes
The new release is finally here! (After I remembered I needed to do it)
This release comes with two small features and some backend changes.
Changelist
- The
rehash_on_startoption now no longer resets on every server launch. (#9)- If, for some reason, you relied on this behaviour, you can imitate it by deleting the
pack.sha1file.
- If, for some reason, you relied on this behaviour, you can imitate it by deleting the
- Added the
If-Modified-Sinceheader to all pack requests. As long as your resource supports it, this means hashes will only be recalculated when necessary, reducing server overhead.- Also added the
last_hash_updateconfig option, which stores the timestamp of the last sent request. - Note that
/pack setwill always recalculate the hash.
- Also added the
- Improved logging during hash recalculations (This includes on-start hashing as well as
pack reload)
Developer Notes
Addition of the If-Modified-Since header reduces the overhead of periodic rehashing greatly (by not actually doing the work when it isn't necessary). I intend to add a rehash_period config option in the future (likely with an accompanying command), but since I can't say how much time I will have available, I can't promise a release date on that feature. Originally rehash_period was supposed to be another feature added in this release, but implementation has proven more complex than expected and I did not wish to delay this release any further.
Anyway, I'm sorry this release took so long to get out. Enjoy updating your hashes!
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:PmZAv6IA:mDlKd1vf"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:PmZAv6IA:mDlKd1vf"
}
