There is info that Android's DownloadManager support ETags. Okay, I have a server with ETag support (e.g. DropBox). When I'm trying to download a file DownloadManager creates a new one and appends a number to the local filename (e. g. file.zip, file-1.zip, file-2.zip etc.). Is there a way not to download an existing file with same ETag? My app will be downloading huge files so I don't want to reload them every time.
Is there a way not to download existing file with same ETag?
You are the one requesting the downloads. You need to determine what files should and should not be downloaded. AFAIK, DownloadManager
only uses ETag
for interrupted downloads -- it does not store ETag
information indefinitely.