owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.76k stars 3.09k forks source link

[FEATURE REQUEST] Improve downloads behaviour, not depending on `Content-Length` header #4417

Open jesmrec opened 1 month ago

jesmrec commented 1 month ago

It comes from https://github.com/owncloud/android/issues/4352#issuecomment-2124059223

this is the way to do, following the line of iOS app:

By sending the Etag for the file from the last PROPFIND as If-Match header, the app can ensure it gets either:

Receiving a newer/different version of the file than what the last PROPFIND returned wouldn't be good for several reasons:

TASKS

jesmrec commented 1 month ago

Check also de posibility of aligning Accept-Encoding: with other clients