I think you should also check the content of the file, can a bad connection drop some packets?
In TCP it cannot. You either receive the packets correctly and in order from the OS, or the connection is terminated.
And I agree on using a timestamp, because 4 4 4 4 4 4 can be the result of multiple random() calls. There is a possibility of multiple users connecting via a proxy to get the same request. But I doubt proxies cache HEAD requests.
In TCP it cannot. You either receive the packets correctly and in order from the OS, or the connection is terminated.
And I agree on using a timestamp, because 4 4 4 4 4 4 can be the result of multiple random() calls. There is a possibility of multiple users connecting via a proxy to get the same request. But I doubt proxies cache HEAD requests.
Oh, yeah, TCP, I didn't thought about it 😖
I didn't thought about proxy's caches either: maybe it would be better use some no-cache header.