-
Bug
-
Resolution: Done
-
Minor
-
4.3.0
-
-
MOODLE_403_STABLE
-
MOODLE_404_STABLE
-
Moodle Apps - 2023 Sprint i4.2, Moodle Apps - 2024 i1, Moodle Apps - 2024 i1.1
When we try to cache a file without the right extension, we are performing a HEAD request to obtain the "Content-type" header, but when this request receive status code 200 with an empty body, the plugin "cordova-plugin-advanced-http" cannot parse the gzip encoded request. (Plugin issue)
So we have 2 ways to proceed here, avoid this HEAD request by obtaining the response headers when we download the file with the plugin "cordova-plugin-file-transfer" or fix the gzip encoding issue.