We have a web application set up to be accessed via Cloudflare.
Also it seems that the asset does finally load, and often the time to load is of the order of 6 min. To me this suggests some timeout limit of 6 min is reached at server cache side and a new subsequent attempt is then successful.
And if a full page reload is impacted, then usually the next full page reload occurs successfully.
We have tried to temporarily bypass Cloudflare for our site. Our impression is that in this configuration the slow loading of static assets does not happen. However, given that we also don’t see slow loading of static assets in every full page load when accessing via Cloudflare, our impression of the state when bypassing Cloudflare may indeed be wrong.
FYI our site is developed with Node.js and Express and runs on AWS EC2 with Elastic Load Balancer in front. Our load balancer instance allows inbound HTTP and HTTPS request on ports 80 and 443, respectively, from IP addresses as specified in https://www.cloudflare.com/ips/.
One more thing to add. We tried out the caching of all assets as described in https://support.cloudflare.com/hc/en-us/articles/200172256-How-do-I-cache-static-HTML-.
After having configured, purged the Cloudflare cache and waited we now see from the log of our web application that server side is not hit with new requests, indicating indeed that all assets are retrieved from the Cloudflare cache.
Even with this last setup we find that certain files every now and then load only after 6 min. Which file that loads slowly at any full page load seems to be pretty random.
Is anyone able to shed some light on the reason for our experienced intermittent slow loading of static assets?