How to disable cache for a specific page?

I have a website where people can upload there games, and play them. Every game has an embed image what can be changed by the devs throught the dashboard. I don't want search engines to cache the embed images of the games to make it show always the updated image. Is there a way to do this with JavaScript or with PHP headers? Link: https://qwgamers.net
QWGamers
Play in the browser and upload your games for free!
3 Replies
MarkBoots
MarkBoots8mo ago
you could try to add a random queryString behind the og:image url everytime you update the image. or maybe a timestamp as querystring. that way everytime the page is indexed (or shared), it sees a possible change to that url and loads that
QWGames
QWGames8mo ago
I will try to do that thanks for the idea
MarkBoots
MarkBoots8mo ago
but, that said. I don't exactly know how search engines are caching that image. maybe you'll have to let them recrawl your page to make them see that change