-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
4.5
-
-
MOODLE_405_STABLE
-
Moodle Apps - 2024 i3.1, Moodle Apps - 2024 i3.2
Right now, the following can happen:
- I open an activity that has an embedded file (e.g. an image). The app downloads the image, but since it's embedded in the HTML we don't know its timemodified so it's downloaded with timemodified=0.
- Then I click to prefetch the activity. In this case we know the timemodified, but it's compared with timemodified=0 so the app thinks there is a newer version of the file and it's re-downloaded.
We should use the downloadTime of the file to improve this (we already store it in DB). The following cases can happen:
- I have downloaded a file which I do know the timemodified, and now I download a file that I don't know its timemodified. The file should not be re-downloaded (this already happens).
- I have downloaded a file which I do know the timemodified, and now I download a file that I do know its timemodified. The file should only be re-downloaded if timemodified is higher (this already happens).
- I have downloaded a file which I don't know the timemodified, and now I download a file that I don't know its timemodified. The file should not be re-downloaded (this already happens).
- I have downloaded a file which I don't know the timemodified, and now I download a file that I do know its timemodified. The file should only be re-downloaded if timemodified is higher than the file's download time.
- is blocked by
-
MOBILE-4627 Download files for mod_page and mod_book in background
- Tested