Updating same image with different new formats

I have…

  • Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • Bug report
  • Performance issue
  • Documentation issue or request

Current behavior

I add an image(png) through the Squidex Client/UI in the appropriate assets field, realizing that the image is too big for the web I update the same image with an optimized one in webp format, on the final website I still the heavy png(Content-Type: image/png) with the usual URL:
https:///api/assets/{app}/{id}
But when opened such image alone in a new tab I do get the latest webp image

Expected behavior

Changing images with a different one in terms of data and type should always give me the latest uploaded.

Minimal reproduction of the problem

Steps above ^

Environment

  • Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Version: [7.15.0]

Browser:

  • Chrome (desktop)
  • Chrome (Android)
  • Chrome (iOS)
  • Firefox
  • Safari (desktop)
  • Safari (iOS)
  • IE
  • Edge

Others:

I can’t get my head around why its behaving like that given the same image url, does overriding images multiple times with different image formats isn’t handled by default? Or its a known limitation?
In any case the only workaround so far that I’ve found is to delete and reupload the assets completely… quite time consuming.

I think it is probably just a caching issue. But I would just resize the assets on the fly. In your UI you can add query parameters to the asset to get an optimized version: Assets | Squidex

But I am not sure if I really understand your bug report and steps.