Below is a boiled-down version of the problem I\'m having.
I have a web page with a list of links to different kinds of files hosted remotely (S3). It looks something