Retry strategy for cross-domain requests


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.

However, for requests to different domains, retries are attempted, causing a delay in error notification.

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 ?