如何清除 Telegram 上 URL 的 Open Graph 缓存? [英] How do you clear the Open Graph cache of an URL on Telegram?
问题描述
当我在 Telegram 上发送新链接时,它会自动读取 URL 的
使用 @webpagebot
您可以将要更新的链接 [最多 10 个] 发送到此 Bot
,它会扫描您的网站并生成新的 图像缩略图
,网站名称
和描述
.
注意:您可能需要重新启动 Telegram 客户端才能查看更新
图像也被缓存.以同样的方式更新它们.确保它们是使用 Open Graph 指定的,但请注意 不需要在您的 prefix
属性上使用 prefix
code>html 标签来定义 OG 命名空间.
第二种解决方案:
为您的网址使用类似以下模式的模式:
http://{网页地址}?v={number}
然后用新的替换之前的number
以强制电报更新og
数据.
例如使用这个:
http://www.example.com/mypage?v=3
代替:
http://www.example.com/mypage
When I send a new link on Telegram, it automatically reads Open Graph data of the URL and generates a preview of the page.
When the Open Graph data of the same page changes, though, Telegram doesn't update its preview: it has cached the old Open Graph data!
How do you clear the Open Graph cache?
Preview Example:
For the URL https://asp.net/
Telegram is reading the following tags:
<meta property="og:site_name" content="Microsoft">
<meta property="og:title" content="ASP.NET | Open-source web framework for .NET">
<meta name="twitter:image" content="https://dotnet.microsoft.com/images/redesign/social/large.png">
<meta property="og:description" content="ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript." />
And is generating the following preview:
Use @webpagebot
You can send the link [up to 10] you want to update to this Bot
and it will scan your site and generate the new image thumbnail
, site name
and description
.
Note: You may need to restart your Telegram client to see the updates
Images are cached too. Update them the same way. Be sure they're specified using Open Graph but note you do not need to use the prefix
attribute on your html
tag to define the OG namespace.
Second solution:
Use a pattern like the following pattern for your web address:
http://{webpage address}?v={number}
Then replace previous number
with a new one to force telegram update og
data.
For example use this:
http://www.example.com/mypage?v=3
Instead of:
http://www.example.com/mypage
这篇关于如何清除 Telegram 上 URL 的 Open Graph 缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!