You test the URL with a HEAD method that often 404. You should try with GET instead.
Returning 405 'Method Not Allowed' on a HEAD isn't unreasonable, and that is the issue we are seeing.
EDIT: did say GET on prior edit.
I think you meant "on a HEAD".
$ curl -I -X HEAD https://redis.io/
HTTP/1.1 404 Not Found
For this app, being more forgiving is a better idea.