Doest Assets have a cache refresh option?

I’m submitting a…

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

Current behavior

If we change image filenames, the old urls keep sending us the old image. Even after a new image with the old name is uploaded. So I assume its caching on cloud-squidex side.

I know you use Guids for identifying images. But we want to use the filename because we want readable urls for images/pdfs instead of guids in the urls.

Expected behavior

Asset cache refresh after namechange happend? (if possible)

Minimal reproduction of the problem

Add image in assets eq test.jpg. Rename to test1.jpg.
Upload new test.jpg. Old (test1.jpg) is shown when browsing to the image.

Expected:
https://cloud.squidex.io/api/assets/[APPNAME]/test.jpg (new image)
https://cloud.squidex.io/api/assets/[APPNAME]/test1.jpg (old image)

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ x ] Cloud version

Version: [VERSION]

Browser:

  • [ x ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
image
If you need more information from me, please let me know.

Yes, but only for GUIDs so far.

Ok are there any plans to update the cache when filenames are renamed?
Could you tell me how long this caching is? Is this a day / week or month(s)?

It is done on cloudflare side, I will have a look how to make the invalidation in a better way. I think the cache duration is only a few hours, but please give me some time to verify that.

If its only a few hours the problem isn’t so big for us right now. Thanks so far!