. On my iOS devices, I see a couple issues only
when visiting my web app over cellular data, which is very strange to me.
Over cellular data, the first
time I visit the page, I see the error:
Failed to load resource: cannot decode raw data
The internet seems to think this issue is related to compression of some sort, but that's clearly not relevant; I'm doing nothing related to compression with any files.
All subsequent times I visit the page, my devices consistently show an error in the console:
Failed to load resource: cannot parse response
in reference to loading the
manually I have no problem.
If I refresh the page 10-20 times, I can get it to work on only one of those tries, and this issue never
appears over Wi-Fi.
I debug this issue by turning off wifi on my phone, and then by connecting it to my Mac in order to use the development tools. Looking at the "Network" page, I can see that this file takes more than 5 seconds to load. Other similarly sized files took less than half a second to load.
Looking online, I wasn't able to find anything about the specific error "could not parse response," besides this question
(almost a year old). I thought I'd post a new, much more detailed question, in hope of getting a response.
So, what is the meaning of these errors, what causes them, and why do they only occur over cellular data? Most importantly, how can I fix them?
The page in question is http://luke.deentaylor.com/wikipedia/
, if anyone would like to try to reproduce the issues.