[Downloads v2] Prevent redownloading of same file if that's already been downloaded once
Categories
(Firefox for Android :: Downloads, enhancement, P2)
Tracking
()
People
(Reporter: rsainani, Unassigned)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][group4])
Currently, fenix downloads the same file as many times as the user tries even if the same file has been downloaded previously. Fenix should give an option to the user to open the file in addition to the usual options of "download" and "cancel". The idea is to save data and resources as the file is already present and accessible on disk.
Technical Notes:
This can be achieved by checking the etag header. If the same etag header for the same url resource is returned, that means the file hasn't changed, and we can give user the option to open the existing file. The user can still choose to re-download the file.
This would require saving the etag header of the file being downloaded in the downloads database so it can be checked when the same download resource url is used.
Comment 1•9 months ago
|
||
In the header, there is an etag unique id for a downloaded file. We can store it and check if the file with this existing etag has been downloaded before.
Updated•5 months ago
|
Updated•5 months ago
|
Comment 3•3 months ago
|
||
Users from bug 1921985 complain about duplicate files being overridden and suggest prompting to either overwrite or rename files, as well as a default behavior modifiable in settings.
Reporter | ||
Updated•2 months ago
|
Reporter | ||
Updated•2 months ago
|
Reporter | ||
Updated•2 months ago
|
Description
•