Retry strategy for cross-domain requests

Hello,

I’m experiencing retries for cross-domain requests leading to a 404 error.
It seems natural for retries to occur on request failure or server errors. And in other cases, it will not be retried.

In the case of Babylon.js, retries happen only once for same-domain 404s, which is expected behavior.
see: https://playground.babylonjs.com/#QCU8DJ#653

However, for requests to different domains, retries are attempted, causing a delay in error notification.
see: https://playground.babylonjs.com/#QCU8DJ#654

I’m inclined to suggest a modification to the retry strategy for cross-domain requests. Alternatively, should the retry strategy be configurable on a per-user basis?

I would tend to agree but unfortunately the request status is at 0 in this case making it difficult to differentiate from other retry scenarii… Do you want to try and create a PR ?