Downloading of .webp images in oneboxes is broken

That is terrible behavior on Akami’s part, yikes.

Is it trivial to change our pretend user agent? Regardless we should not be pretending to be Chrome 58 which was released in 2017.

@eviltrout should have full context on why Discourse pretends and does not use a special User Agent just for Discourse. My vague recollection is that if we do not play pretends some people deny us from downloading images and oneboxes. We could:

  1. See if stuff changed enough - and try again with our own user agent
  2. Upgrade our user agent (for pretending) to latest chrome
  3. Change to a version of Safari on MacOS that has no support for webp

Possibly, we can allow for “transparent” webp → jpeg translation after file download, so we can still proxy non compatible images if the site operator does not fully support. (this could be handy with some other esoteric image formats)

Or we just move on and support webp by default and add it to all our defaults? (I wonder if it is too early)

3 לייקים