Forum Discussion

clemensw's avatar
6 years ago

replacing image: still old image shown

Dear Community,

I replaced an image and published the changes. On our stage community the new image is shown. But on our production community still the old one is shown?
I also cleared my browser cache and tried in another browser?

Are the images also cached on Lithium side? Can I clear the cache or force anyhow the update?

Thank you, best
clemensw

  • clemensw - The recommended way of using the images in the code is to use this method, so you should use asset.get("destination_url") to always get the updated image. This way, you won't ever face any cache related issues since this method uses the CDN for the asset delivery. This is recommended for all the assets that are uploaded in the studio and that you use in your code.

     

    I hope this helps.

  • Hi clemensw : It may be because of CDN. You can ask Lithium to clear CDN cache on your production instance.

    Hope it will resolve your image issues.

    Thanks,

    Abhishek