mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Fix HTTP cache checksum mismatch for resources

Open Zephkek opened this issue 6 months ago • 0 comments

Summary

Fix HTTP resource file mismatches when large client files are updated.

Motivation

Resolves #4161. The server could advertise a checksum from the source file, then serve different bytes because the HTTP cache was copied in a separate pass. Large files made that race much easier to hit.

Test plan

  • Verify stale HTTP cache files are now copied to a temp file, checksummed from the copied bytes, then published after validation.

Checklist

  • [x] Your code should follow the coding guidelines.
  • [x] Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

Zephkek avatar May 04 '26 08:05 Zephkek