Way to update the auto-generated image?

I have an app which I have deployed to the community cloud: https://census-explorer.streamlit.app/

It’s a side project for me, and I’ve been working on it for a few months. I often share links to the app on LinkedIn when I implement new features. When I share the link to the app, LinkedIn auto-generates a thumbnail to the app. However, that thumbnail appears to be to a much earlier version of the app.

I’m not clear if that image is generated by Streamlit or LinkedIn. But if it’s generated by Streamlit, is there a way that I can somehow cause it to be regenerated?

You can see an example of what I mean here. I just posted this status update today. And the image is very different than what you’ll see if you actually visit the app.

Community Cloud generates those previews and it should automatically update itself. However, it doesn’t happen instantaneously. It should generally update within 24 hours. However, there may be downstream effects where other platforms or clients have cached the old image and may take a little longer to pick up on the new one.

How long has it been since your app changed?

Thank you for the fast reply.

The app updated recently. However, the image in LinkedIn is from weeks (months?) ago, and there have been countless updates in the interim.

It had not occurred to me that LI might be caching the image from my first post of the app, but that seems likely.

Is there any way that I can view the thumbnail that Streamlit is generating?

Also: do you know if it’s possible to force LI to clear its cache of the image (if that is indeed the issue)?

Here’s the current image on Community Cloud:
image

I’m not sure about LinkedIn and would have to search around. I’d recommend checking with LinkedIn support.

Thank you so much. You’ve confirmed that the issue is with LinkedIn, and not Streamlit. I have no idea how to contact them, but will poke around.

Try this (thanks @tc1).

1 Like

So this is fascinating. I entered the link of my app there and it generated the correct thumbnail.

I then went to linkedin proper and drafted a post and it used the new thumbnail too.

Then I went back to my old post, and it had the new thumbnail!

I think that entering the URL into that page was the trick.

The original thumbnail from my post this morning was so old, it literally said “streamlit test” :laughing:. Like, it was months old, and I’ve had dozens of commits since then. I just get so wrapped up in new features, that it took me a while to try and address this.

Thanks so much. I just bookmarked that page, and the next time I run into this issue I know what to try to fix it!

Cool. Also noted for me: LinkedIn likes to cache preview images for sites so they may need a manual poke from time to time to stay more current.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.