Better Server Packs (Fabric)
Easily manage server-side resourcepacks without having to restart the server!
Список изменений
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!