How to force cache purge of Twitter Card's bots?

后端 未结 4 811
余生分开走
余生分开走 2020-12-24 02:03

Literally I am looking for something like this:

https://developers.facebook.com/tools/debug/

But for Twitter Cards.

I put something wrong on my page

4条回答
  •  梦毁少年i
    2020-12-24 02:24

    Following the steps in Twitter Card's Troubleshooting Guide actually forced the cache to clear in my case.

    When testing and/or iterating on Cards, it is sometimes helpful to test updates on your timeline. It may be possible to use the following technique to refresh the cache with your most up-to-date changes of your page’s Card.

    1. Add Card metadata to a page
    2. Tweet URL to that page
    3. Refresh your browser to view the Card contents on your timeline
    4. Change Card metadata on the page
    5. Take the same URL and runs it through bit.ly
    6. Tweet the new bit.ly URL
    7. Refresh your browser to view the updates

    Additionally, you can create multiple bit.ly URLs to allow for repeat testing.

    I generated a bit.ly link to the page, then tweeted it, and then quickly deleted that tweet. It cleared the cache right away for the other tweet.

提交回复
热议问题