https://www.cogeo.org/ Should be pretty straightforward with GeoTIFF, could try to do that with _any_ non-DOI URL that is given and then handle failures gracefully.