Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序使用简单的NSURLConnection方法检查网站中的一些文件。现在我想在不下载文件的情况下识别其中一个文件是否已更改并进行比较。
NSURLConnection
我考虑过 md5 校验和,但我怎样才能做到这一点而不浪费流量下载整个文件。
你对此有什么想法吗?
检查文件上的时间戳。这应该比使用 md5 校验和更容易。我不知道您的应用程序或服务器 API 是如何实现的,但这个想法非常简单: