Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 1
    I'm on my cell, so havn't tried it properly, but try pasting the urls into fabianstiehle.com/mimetype which I think will return the mime type. Commented Jan 5, 2022 at 6:26
  • 3
    I don't think CDNs typically control the mime type. They just pass the mime type from the origin server along. Commented Jan 5, 2022 at 11:16
  • 1
    @StephenOstermiller - I largely agree - but if the objects live in the CDN as appears to be the case here per the users first sentence (he specifically states images are stored), the CDN is a web server. Commented Jan 5, 2022 at 16:00
  • @davidgo i'm using AWS s3 and cloudfront to serve the images. So the images are stored in s3 and cached in cloudfront. Commented Jan 5, 2022 at 20:48
  • 2
    @davidgo i just confirmed that the browser issue was caused because my application did not set the mimetype. I've changed the code so that the mimetype is included on each upload and now the image is displayed normally again, Thank you! Commented Jan 5, 2022 at 21:53