This tries to workaround the Vanilla bug MC-164316 which causes the client to fail applying a pack for the first time when the file's hash changed in the server config while the URL stayed the same. This is done by appending the hash directly to the URL so that the client treats it as a new pack when the hash changes. If it doesn't change then it will still use the cached local version.