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.
Bug 1911990 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
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](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag). 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.