Clear the metatag/embed cache when someone posts a link
Our site has links that people share in Discord that have og:video tags so people can watch video directly in the app. The meta tags change when we process a "better" version of the video on the server but it seems like Discord caches the metatag data for each user when they first look at the link. Is it possible to clear the cache somehow when we update our metatags?
An embed is "permanently" cached in a message once it's posted. Meaning, the unfurled embed within a message will never change - and subsequent retrievals of that message won't trigger a re-fetch of the embed. Additionally, for each unique URL, we cache the result of the unfurl for up to 30 minutes, so if subsequent people post that link, it's not re-requested.
Note: you could add a # or a ? and that will count as a "new URL" without changing the URL path
a # or a ? does not count as a "new URL" in Discord for me
Really surprising and painfull at times that there's nothing like Facebooks Sharing Debugger 😰
But it could at least occasionally re-check at least if the same link was shared again or something
there is, https://discord.com/developers/embeds
Didn't know about this debugging tool. Thanks!
Best Regards, Suraj
On Sat, Oct 21, 2023 at 9:57 AM advaith @.***> wrote:
there is, https://discord.com/developers/embeds
— Reply to this email directly, view it on GitHub https://github.com/discord/discord-api-docs/issues/1663#issuecomment-1773655758, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKDAQVLS3242V7KSVOD75LYANFMVAVCNFSM4NIFGPV2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGM3DKNJXGU4A . You are receiving this because you commented.Message ID: @.***>
That's very helpful thank you though it won't let you force a refresh as I understand it like Facebooks debugger right?
results on the embed debugger page are not cached.
Siemka
results on the embed debugger page are not cached.
That makes sense, though cache is not cleared for links already shared in Discord messages right?