I have a website on node.js. I host the application with iisnode.
I have a page that displays a large amount photos in a style like Pinterest. The images are loaded as plain <img />
with proper src being appended to DOM. The images are plain static resource on the server.
All images load almost instant on latest windows Chrome, Android Chrome, and even iOS Chrome.
However, on iOS Safari, for each hundred of photos, randomly, one or two photos will not be loaded instantly, instead, those photos will be loaded in about 20-30 seconds. The Safari developer debugger says there is a 20-30 second latency for that image request.
The problem doesn't exist if I don't use IISNode and use node.exe as the web server directly. I suspect there is some weird compatibility issue between IISnode and iOS Safari. It seems to me, IISNode triggers something in iOS Safari that blocks HTTP connectivity.
What is the cause of this issue?